Unable to change Standard

PDF-XChange Drivers API (only) V4/V5
This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - VERSION 4 & 5 - Please use the PDF-Tools SDK Forum for Library DLL assistance.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Chris - Tracker Supp, Tracker Supp-Stefan

Post Reply
Posts: 5
Joined: Thu Feb 14, 2019 3:38 pm

Unable to change Standard

Post by gopinathrbe » Thu Feb 14, 2019 3:54 pm

CPXCPrinter PDFPrinter = null;
CPXCControlEx prnFactory = new CPXCControlEx();
PDFPrinter = prnFactory.get_Printer("", "PDF-XChange Standard V7", "<REG CODE>", "<DEV CODE>") as CPXCPrinter;
PDFPrinter.Option["Save.SaveType"] = "Save";
PDFPrinter.Option["Save.ShowSaveDialog"] = "No";
PDFPrinter.Option["Save.WhenExists"] = "Overwrite";
PDFPrinter.Option["Saver.ShowProgress"] = "false";
PDFPrinter.Option["Save.RunApp"] = "false";
//PDFPrinter.Option["Paper.LayoutType"] = 0;
//PDFPrinter.Option["General.Specification"] = -1;
PDFPrinter.Option["Paper.SheetSizeIndex"] = 10;
PDFPrinter.Option["Paper.Size"] = 10;

Paper.SheetSizeIndex as per documentation it is not working

As per documentation:
"List of predefined papers into PDF-XChange 4.0. Number, specified into column Index, can be used to
specify the sheet size into property Paper.SheetSizeIndex."
Last edited by gopinathrbe on Tue Feb 19, 2019 3:48 pm, edited 2 times in total.

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 14158
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: Unable to change Standard

Post by Tracker Supp-Stefan » Mon Feb 18, 2019 12:47 pm

Hello gopinathrbe,

I notice in your code both of these lines:
PDFPrinter.Option["Paper.SheetSizeIndex"] = 10;
PDFPrinter.Option["Paper.Size"] = 10;

And I believe you only need to use the SheetSizeIndex as specified here:

As there is no mention of "Paper.Size" in there.

So please try commenting out
// PDFPrinter.Option["Paper.Size"] = 10;
And let us know if that works for you!


Post Reply