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 Jan 17, 2014 11:23 am

Hey guys,
I've made some researches but it seems I haven't been lucky at all so .. here I am bothering you a bit.

We receive pdf files on few different dimensions, Is there an option to print them out fitting them to the printer's page? (basically the same you can do while using the preview fit option)

Thanks in advance for your attention and for any further help

unicodesrl
 
Posts: 7
Joined: Wed Oct 23, 2013 3:43 pm

Mon Jan 20, 2014 6:30 am

Hello,

Thanks for your inquiry.
You could try the line
Code: Select all
document.PrintDocument.Print();
. The method Print() will fit pages of pdf files to the printer's page as default.

Welcome to write to us again if you have any questions.

Have a nice day.
Best wishes,
Amy
E-iceblue support team
User avatar

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

Wed Jan 22, 2014 2:51 pm

Hello,
yes we did try it already but it doesnt work as well.

If we print it using Acrobat stuff it comes out pretty much perfect, while using Spire.PDF (plus fit page) it is previewd properly but printed with different margins

I'm attaching a pdf file that may help you out addressing the issue.

Thanks once again for your kindly attention and support

unicodesrl
 
Posts: 7
Joined: Wed Oct 23, 2013 3:43 pm

Thu Jan 23, 2014 3:19 am

Hello,

Thanks for your pdf file. I have reproduced the issue. Our dev team is adding a new feature now. The new feature may be able to resolve the issue. Once the new feature has been added, we will test it with your pdf file to ensure it works.
We will inform you immediately when a new version is released.

Have a nice day.

Best wishes,
Amy
E-iceblue support team
User avatar

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

Thu Jan 23, 2014 7:42 am

Hello Amy,
thanks for answering. That's a good news, I'm glad it has been useful for both of us :)

Im looking forward to receive further updates and thanks once again

have a nice day, regards

unicodesrl
 
Posts: 7
Joined: Wed Oct 23, 2013 3:43 pm

Fri Jul 11, 2014 6:57 am

Hello,

Thanks for your waiting.
The feature has been supported. Welcome to download Spire.PDFViewer Pack(Hotfix) Version:2.2.6(http://www.e-iceblue.com/Download/downl ... t-now.html) and test the feature: doc.PageScaling = PdfPrintPageScaling.ActualSize;

Best wishes,
Amy
User avatar

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

Return to Spire.PDF