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.

Wed Jul 29, 2015 1:22 pm

How do I ensure that wide html pages can be fit in a A4 size pdf page ?

I have tried following your eksempels but the right part of the page is not show'en in the pdf file.

Can It be done and how if possible.

pchansen
 
Posts: 3
Joined: Tue Apr 29, 2014 7:01 am

Thu Jul 30, 2015 10:01 am

Hello,

Thanks for your inquiry.
There is no way to ensure that wide html pages can be fit in a A4 size pdf page at this stage.
Please try the new method to set the PdfPageSize to A4 in our website.
http://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Convert-HTML-to-PDF-with-New-Plugin.html
Here is the sample code.
Code: Select all
Spire.Pdf.HtmlConverter.Qt.HtmlConverter.Convert("http://www.e-iceblue.com", "HTMLtoPDF5.pdf", true, 100 * 1000, PdfPageSize.A4, new PdfMargins(0, 0));


Best Regards,
Sweety

E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Mon Aug 03, 2015 12:12 pm

But the QT plugin works fine converting the page into one single pdf page. But the QT plugin does not work in a plugin loaded with reflection

pchansen
 
Posts: 3
Joined: Tue Apr 29, 2014 7:01 am

Tue Aug 04, 2015 9:43 am

Hello,

Thanks for your reply.
By investigating, sorry that we are unable to replicate the issue, could you please supply us the codes you used demonstrates to load the plugin using reflection?
It would be helpful to work out the solution for you ASAP.

Best Regards,
Sweety

E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Return to Spire.PDF

cron