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 Sep 29, 2017 3:04 pm

Hello,
with the trial version working now with the licensed version I can not print to the center of the page.
thank you

doc.PageScaling = PdfPrintPageScaling.FitSize
doc.Print()

'This enum may be removed in the future,please use the enum of PdfSinglePageScalingMode'.

Marco_Osima
 
Posts: 8
Joined: Fri Sep 29, 2017 9:57 am

Fri Sep 29, 2017 3:18 pm

the version I'm using is spire.pdf_3.9.360

Marco_Osima
 
Posts: 8
Joined: Fri Sep 29, 2017 9:57 am

Sat Sep 30, 2017 2:09 am

Dear Marco_Osima,

Thanks for your inquiry.
We just made some modification about printing in Spire.PDF 3.9.360, please use following code to fit page when printing.
Code: Select all
            doc.PrintSettings.SelectSinglePageLayout(PdfSinglePageScalingMode.FitSize, true,100f);
            doc.Print();

If there is any question, please let us know.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Mon Oct 02, 2017 8:42 am

I tried with version 3.9 and the output of the document came out centered, without adding commands only with doc.PrintDocument.Print ().
With version 3.9.360 also by adding the doc.PrintSettings.SelectSinglePageLayout (PdfSinglePageScalingMode.FitSize, True, 100.0)
Printing is not centered.
Thanks.

Marco_Osima
 
Posts: 8
Joined: Fri Sep 29, 2017 9:57 am

Mon Oct 02, 2017 9:59 am

Hi,

I was unable to find the issue you described on my side. Could you please share your test file to help us with a better investigation? That's would be helpful.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1187
Joined: Tue Sep 27, 2016 1:06 am

Mon Oct 02, 2017 10:44 am

Attach test Printing.

Thanks.
Last edited by Marco_Osima on Tue Oct 03, 2017 7:02 am, edited 1 time in total.

Marco_Osima
 
Posts: 8
Joined: Fri Sep 29, 2017 9:57 am

Mon Oct 02, 2017 10:49 am

Hello,
once you've done the tests you can delete the file
thank you

Marco_Osima
 
Posts: 8
Joined: Fri Sep 29, 2017 9:57 am

Tue Oct 03, 2017 3:47 am

Dear Marco_Osima,

Thanks for your feedback.
I tested your document with Spire.PDF 3.9.360, sorry that I still didn't reproduce the issue, please check the output file on attachment. My testing code:
Code: Select all
            PdfDocument doc = new PdfDocument(@"D:\360Downloads\test\original.PDF");
            doc.PrintSettings.SelectSinglePageLayout(PdfSinglePageScalingMode.FitSize, true, 100f);
            doc.Print();

Could you please provide us with the following information to help us reproduce your issue ? Then we could investigate it correspondingly.
1)OS information, e.g. Win7 64bit
2)Region and Language settings, e.g. China,Chinese
3)Printer name, e.g. Microsoft XPS Document Writer(Could you please check if it works with this printer on your computer)
4)DPI setting on your computer

In addition, please use the old version as a tempory solution until we fix the issue in new version.
And I don't have the permission to delete your document, you could delete it by editing your original post.

Sincerely,
Betsy
E-iceblue support team
Last edited by Betsy.jiang on Thu Oct 12, 2017 9:57 am, edited 1 time in total.
User avatar

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

Tue Oct 03, 2017 7:10 am

1)OS information = Win7 64bit

2)Region and Language settings = Italian

3)Printer name = HP LaserJet 4200/4300 PCL6

4)DPI setting on your computer = 600 DPI

5) program = Visual Studio 2013 - VB - Net Framework 4.5

Thanks.

Marco_Osima
 
Posts: 8
Joined: Fri Sep 29, 2017 9:57 am

Tue Oct 03, 2017 9:20 am

Dear Marco_Osima,

Thanks for your prompt response.
Sorry that I didn't have the printer(HP LaserJet 4200/4300 PCL6) at present. And the largest DPI I could set is 500% on my computer, could you please provide the screenshot of your DPI setting ?

Then I tested with the settings you mentioned except for the two setting(I used 500% DPI and Microsoft XPS Document Writer). Unfortunately, I was unable to reproduce the issue, it still worked fine on my side.

Could you please print the document with Microsoft XPS Document Writer and tell us the result ?

Certainly, we will continue to investigate the issue on our side, if there is any progress/question, I will let you know.

Many thanks,
Betsy
E-iceblue support team
User avatar

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

Mon Oct 09, 2017 6:24 am

Dear Marco_Osima,

After further investigation, we could reproduce the issue and our Dev team is looking into it now. We will inform you once there is any progress.
So sorry for the inconvenience caused.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Mon Oct 09, 2017 11:50 am

Hello
I tried to print with Microsoft XPS and the print is corrected,
with the same settings on the HP LaserJet 4200/4300 PCL6 printer, it is not centered.
the resolution of 600 dpi is the maximum of the printer, at the time of printing, the program does not set any resolution, it uses the default the printer.

Thanks.

Marco_Osima
 
Posts: 8
Joined: Fri Sep 29, 2017 9:57 am

Tue Oct 10, 2017 1:34 am

Dear Marco_Osima,

Thanks for your information.
We had reproduced the issue and our Dev team is investigating it, we will inform you as soon as it is fixed.
We apologize for the inconvenience.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Fri Oct 20, 2017 7:17 am

Dear Marco_Osima,

Thanks for waiting.
Now we publish Spire.PDF Pack(Hot Fix) Version:3.9.407 which solves your issue.
Looking forward to your feedback.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Tue Oct 24, 2017 8:52 am

Dear Marco_Osima,

Greetings form E-iceblue.
Has the issue been resolved ? Could you please give us some feedback.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Return to Spire.PDF