Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Tue Jul 27, 2021 8:18 pm

Hi,

I imported all the necessary libraries but the PdfHtmlLayoutFormat data type and the PdfDocument LoadFromHTML method does not find them.
I tried this guide: /Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Convert-HTML-to-PDF-Customize-HTML-to-PDF-Conversion-by-Yourself.html
but there seems to be no data type and method inside pdfDocument.

How can I go about using that type of data and that method?

Thanks for your answer. I want to clarify that I installed everything that was needed and did it twice in two different projects to verify that it is not my mistake. Unfortunately he doesn't find them at all.
I checked and Spire.PDF is already at the latest version.

johnreese
 
Posts: 1
Joined: Tue Jul 27, 2021 3:10 pm

Wed Jul 28, 2021 7:36 am

Hello,

Thank you for your inquiry.
The PdfHtmlLayoutFormat and LoadFromHTML methods are available on the .NET Framework platform, while they are not provided on the .NET Core platform. Based on your description, I guess that your application type is .NET Core, right? If yes, please use QT plugin to convert HTML to PDF instead. If there is any misunderstanding, please provide more information for our reference. Thanks in advance.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1657
Joined: Wed Apr 07, 2021 2:50 am

Thu Aug 05, 2021 8:50 am

Hello,

Hope you're doing well.
How is your issue going? Can you give us some feedback at your convenience? Thanks in advance.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1657
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.PDF