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.

Mon Nov 18, 2013 4:43 pm

Hi,

I'm trying to convert a html file into pdf in two different computers with the same code but i'm having differente outputs:
The 1st is a Win7, IE8 32 bits generate a small pdf, the html is showed as text and i can select it.
The 2nd is a Win7, IE10 64bits wich generate a large pdf, each page with an image.

I would like generate always as plain text. Can you help me?

Thanks

airtonsantos
 
Posts: 1
Joined: Mon Nov 18, 2013 2:06 pm

Tue Nov 19, 2013 3:42 am

Hello,

Thanks for your feedback.
Please try the following method, and you could get more information about the method from the following link.
http://www.e-iceblue.com/Knowledgebase/ ... o-PDF.html
Code: Select all
 
HtmlConverter.Convert(htmlfile, "HTMLtoPDF.pdf",

                //enable javascript
                true,

                //load timeout
                100 * 1000,

                //page size
                new SizeF(700, 880),

                //page margins
                new PdfMargins(0, 0)
                );

If there are still any questions, could you please provide us your test document if convenience?
Thanks And Regards,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Fri Nov 22, 2013 9:21 am

Hello,

Have you tested the method? Has the issue been resolved? Could you please give us some feedback if convenience?

If there are any questions, welcome to get it back to us.

Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Return to Spire.PDF