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.

Fri Oct 16, 2015 10:24 am

you taught me use new method(using plugins folder) long time ago.

at that time i roughly tested my project so i forgot how to rotat page with new method

1.how can i rotate A3 size page?

2. i upload my sample html code. i made my code like cell.jpg but after convert pdf, there looks cell in pdf.
why it works like that?

bomboom
 
Posts: 15
Joined: Fri Jul 17, 2015 7:08 am

Mon Oct 19, 2015 3:58 am

Hi,

1.Sorry that there is no page rotation setting in the plugins method, but you can rotate page after finishing the conversion from Html to pdf:
Code: Select all
PdfDocument pdf=new PdfDocument ();
pdf.LoadFromFile("..\\..\\output.pdf");
pdf.Pages[0].Rotation = PdfPageRotateAngle.RotateAngle270;


If you want to make page width bigger than height, please use custom size in the new method.
Code: Select all
//A3.Height as width, A3.Width as height
new SizeF(PdfPageSize.A3.Height,PdfPageSize.A3.Width)


2. Please use the latest version(Spire.PDF Pack(Hot Fix) Version:3.5.80) and which works well for your html file.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3044
Joined: Wed Jun 27, 2012 8:50 am

Mon Oct 19, 2015 6:22 am

i used Spire.PDF Pack(Hot Fix) Version:3.5.80 but it doesn't work what i wnat(as i said before)

and there one more problem.

i used img by mm (ex)style= "width:100mm; height:50mm;") tested before (before us plugins)
it worked exactly same size print. but now it doesn'y work. i don't now why it doesn't work.

bomboom
 
Posts: 15
Joined: Fri Jul 17, 2015 7:08 am

Mon Oct 19, 2015 7:43 am

Hi,

Sorry, please excuse my carelessness. I have reproduced your issue and posted it to our dev team.

For new issue, please share your file and used code.
Thank you.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3044
Joined: Wed Jun 27, 2012 8:50 am

Tue Oct 20, 2015 5:48 am

i upload my sample file and code to use convert html to pdf

it doesn't make exactly same img size i want (mm length)

Code: Select all
String url = @"C:\Users\Administrator\Documents\Visual Studio 2013\Projects\ConsoleApplication1\ConsoleApplication1\test_html_mm.html";

            HtmlConverter.Convert(url, "test_mm.pdf",

                //enable javascript
                true,

                //load timeout
                100 * 1000,

                //page size
                new SizeF(PdfPageSize.A3.Height,PdfPageSize.A3.Width),

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

bomboom
 
Posts: 15
Joined: Fri Jul 17, 2015 7:08 am

Tue Oct 20, 2015 8:40 am

Hi,

Thanks for your providing.
Regarding the cell border issue, I got its update from our dev team. It is not a bug, the result is correct, because the displayed effect of your html file in Qt is such, please check qt.png.
For the size issue, the html file is missing image files, please also share. And please provide us your output pdf file via Qt and the output pdf file worked exactly same size print you mentioned previous, which can help us understand your issue well.

Thank you.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3044
Joined: Wed Jun 27, 2012 8:50 am

Wed Oct 21, 2015 6:13 am

i'm truly appreciate your team's support you've given me

i solved my problem by another way to use px size
i'll post later when i get other problems

Best Regards

bomboom
 
Posts: 15
Joined: Fri Jul 17, 2015 7:08 am

Wed Oct 21, 2015 6:43 am

Hi,

Thanks for your reply.
I am glad that your issue has been solved.

Have a nice day.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3044
Joined: Wed Jun 27, 2012 8:50 am

Thu Jan 05, 2017 11:36 am

May be very useful for me, Mark :mrgreen:!

MakeSense
 
Posts: 7
Joined: Thu Jan 05, 2017 4:14 am

Return to Spire.PDF

cron