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.

Wed Aug 09, 2023 8:49 am

Hello I have problem with FreeSpire.PDF v8.6.0 with function .SelectMultiPageLayout(2, 2, false, Spire.Pdf.Print.PdfMultiPageOrder.Horizontal);

In short when using multi page layout with multiple pages it adds margins around each pages when multi page layout is used. But I cannot have any space between pages.

I tried to set margins to 0 but it doesn't help. Have checked that paper size is correct one. have tried same function with param hasPageBorder = true. Also the same result.

I can see that there is non public member in PrintSettings.MultiPageLayout parameter names are in some special characters that VisualStudio does't not understand (shows squares) and last value is 10, what I believe is that margin I'm looking for. Is there any way to change it to 0?

janisber
 
Posts: 1
Joined: Mon Jul 03, 2023 9:24 am

Thu Aug 10, 2023 6:31 am

Hi,

Thank you for your feedback.
I have consulted with our development team, and I want to inform you that the parameter for setting page margins are currently not publicly available. I have created a new feature with the ticket number SPIREPDF-6223, our dev team will investigate and implement it, once it is implemented, I will inform you asap.

Best regards,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Mon Sep 11, 2023 2:33 am

Hi,

We are pleased to inform you that we have implemented this new feature:SPIREPDF-6223. However, currently, it only supports setting horizontal margins. Please refer to the following code for reference.
Code: Select all
pdf.PrintSettings.SelectMultiPageLayout(2, 2, false, PdfMultiPageOrder.Horizontal, 0);

Allowing simultaneous adjustment of both horizontal and vertical margins may result in different scaling ratios between the two directions, thereby altering the original aspect ratio of the pages. To maintain consistency, we have chosen to provide the option to modify only the horizontal page margins at this time.

Website download link: https://www.e-iceblue.com/Download/download-pdf-for-net-now.html
Nuget download link: https://www.nuget.org/packages/Spire.PDF/9.9.3
Sincerely,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Return to Spire.PDF

cron