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 Aug 18, 2015 9:01 am

I have a problem with Spire.PDF For NET.
In my Project I used Spire.PDF to print a PDF file.
My Code is under:

Spire.Pdf.PdfDocument doc = new Spire.Pdf.PdfDocument();
doc.LoadFromFile(filepath);
doc.PrintDocument.PrinterSettings.DefaultPageSettings.Landscape = true;
doc.PrintDocument.PrinterSettings.Copies = 4;
doc.PrintDocument.PrinterSettings.PrinterName = PrinterName;//from parameters.

doc.PrintDocument.PrinterSettings.Duplex = System.Drawing.Printing.Duplex.Vertical
doc.PrintDocument.Print();
doc.Close();

But,this line doc.PrintDocument.PrinterSettings.DefaultPageSettings.Landscape = true; is useless. The printer always printed the file in portrait style.
I am sure my Printer can print in Landscape.Please see the shotcut picture.
printersetting.jpg

zhangwei8387
 
Posts: 2
Joined: Mon Aug 10, 2015 8:26 am

Tue Aug 18, 2015 9:42 am

Dear zhang wei,

Thanks for your inquiry.
I have reproduced your issue and have posted it to our Dev team. We will let you know if there is any news.

Best Regards,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Wed Aug 19, 2015 2:17 am

Dear zhang wei,

After investigation, we found the document printed page orientation is automatically adjusted according to the original document page orientation. If your file page is landscape, the page will be landscape after printing. If your file page is portrait, the page will be portrait after printing. If your file page is portrait and you want to set printing Shortcuts orientation as landscape, the result may be not good, and there will be white space on the right side of the page.
If you really need this feature, please tell us, our Dev team will do it.


Best Regards,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Wed Aug 19, 2015 2:36 am

Thank you for your supports.
Although my demand is weird.But I think the class : "spire.PDF.PrintDocument" was Inherited from "System.Drawing.Printing.PrintDocument".
I tried "System.Drawing.Printing.PrintDocument.DefaultPageSettings.Landscape =true" to print a text file in landscape ,and it worked correctly.so I think spire.pdf can also have same function.
The needs of customers are protean. Developers should not lower requirements.
Am I right?


Best Regards,
zhang wei.

zhangwei8387
 
Posts: 2
Joined: Mon Aug 10, 2015 8:26 am

Wed Aug 19, 2015 8:08 am

Dear zhang wei,

Thanks for your feedback. We will optimize our products step by step. And we will adjust our products according to customer requirement. The feature you mentioned has been added into our schedule. Once it is done, we will let you know.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Tue Sep 08, 2015 6:28 am

Dear zhang wei,

Thanks for your waiting. The newest hot fix of Spire.PDF: Spire.PDF Pack(Hot Fix) Version: 3.5.34 has been released, in which the new feature you mentioned has been done. Please download it and then have a try. Here is code for your reference:
Code: Select all
Pdfdocument.CustomHandleLandscape = true;


Best Regards,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Thu Oct 22, 2015 8:12 pm

Hi Betsy,

I'm using the Spire_PDf free for printing existing pdf-documents.
This version experiences the same problem. Any chance of getting the same enhancement in the free version too?

Thanks :P

swiftchon
 
Posts: 3
Joined: Thu Oct 22, 2015 8:07 pm

Fri Oct 23, 2015 2:26 am

Hello,

Thanks for your inquiry.
We will update the feature into Free version in the future. But I am afraid that it may need some time due to other priority issues because we only maintain our free product when we have enough time.

Best Regards,
Amy
E-iceblue support team
User avatar

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

Fri Nov 18, 2016 2:05 am

Hi. Any news about uptading this feature to the free version ?
Thanks.

[email protected]
 
Posts: 6
Joined: Fri Nov 18, 2016 2:01 am

Fri Nov 18, 2016 2:28 am

Hi,

Thanks for posting.
Sorry that I am afraid that we don't have the plan to maintain the free version at present.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.PDF