Custom Paper.SheetSizeIndex does not work.

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-Tools SDK of Library DLL functions(only) - Please use the PDF-XChange Drivers API SDK Forum for assistance with all PDF Print Driver related topics or PDF-XChange Viewer SDK if appropriate.

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Stefan - PDF-XChange

shahchandra
User
Posts: 3
Joined: Mon May 19, 2025 9:08 am

Custom Paper.SheetSizeIndex does not work.

Post by shahchandra »

I want to set different page size during the print but all the page is printed on A4 size.

Attached you can find the demo project. I have used the below code to set page size,

Code: Select all

PDFPrinter.ResetDefaults();

// setting other general and save options which works :)
 
PDFPrinter.set_Option("Paper.LayoutType", "Normal");
PDFPrinter.set_Option("Paper.SheetSizeIndex", -2); 
PDFPrinter.set_Option("Paper.SheetWidth", 450);
PDFPrinter.set_Option("Paper.SheetHeight", 250);
// other options which works
// ...
PDFPrinter.ApplyOptions(0);
I am using the PDF-XChange version10.3.1.387.

Any help is appreciated.
TestPDF.zip
You do not have the required permissions to view the files attached to this post.
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11888
Joined: Wed Jan 03, 2018 6:52 pm

Re: Custom Paper.SheetSizeIndex does not work.

Post by Daniel - PDF-XChange »

Hello, shahchandra

Thank you for letting us know, this has been raised to the dev team to ask for their insight and expertise. Hopefully one of them can come post here with a solution, or promise to resolve the issue in a future release.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com