Hello,
can you tell me the complete list of Printer.PaperName supported by the PDF-XChange Viewer SDK ?
More, is any method existing for passing the paper size numeric code instead of a PaperName string ?
Thanks,
Ciro Ettorre
Named Objects: Printer.PaperName
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: Named Objects: Printer.PaperName
For printing you can specify any paper name which is supported by your printer. For list of possible paper names you can look at the printer preferences.
And no - there are no numeric codes for PaperName, but you can specify exactly paper sizes (PaperWidth and PaperHeight).
And no - there are no numeric codes for PaperName, but you can specify exactly paper sizes (PaperWidth and PaperHeight).
-
- User
- Posts: 25
- Joined: Tue Dec 30, 2008 9:59 am
Re: Named Objects: Printer.PaperName
it is not clear, however, which kind of string I have to pass to the function.
For example, I used a simple program for getting all the supported paper sizes from a specific printer.
An example of the output is:
Printer: \\ipp://172.22.1.1\ppmcopier
Supported Paper Sizes:
[PaperSize Letter Kind=Letter Height=1100 Width=850]
[PaperSize 11x17 Kind=Standard11x17 Height=1700 Width=1100]
...
Now, consider the PaperSize=11x17: should I pass "11x17" or "Standard11x17" ??
Can you please tell me how the string is mapped into the printer parameters ?
Thanks,
Ciro
For example, I used a simple program for getting all the supported paper sizes from a specific printer.
An example of the output is:
Printer: \\ipp://172.22.1.1\ppmcopier
Supported Paper Sizes:
[PaperSize Letter Kind=Letter Height=1100 Width=850]
[PaperSize 11x17 Kind=Standard11x17 Height=1700 Width=1100]
...
Now, consider the PaperSize=11x17: should I pass "11x17" or "Standard11x17" ??
Can you please tell me how the string is mapped into the printer parameters ?
Thanks,
Ciro
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: Named Objects: Printer.PaperName
hI,
The AX paper name that you have specified is compared with a list of supported paper names which is received from the specified printer.
In this case - try to use "Standard11x17" paper name.
HTH.
The AX paper name that you have specified is compared with a list of supported paper names which is received from the specified printer.
In this case - try to use "Standard11x17" paper name.
HTH.
-
- User
- Posts: 25
- Joined: Tue Dec 30, 2008 9:59 am
Re: Named Objects: Printer.PaperName
in the sample that I have sent:
PaperName = "11x17" ( .NET = PaperSize.PaperName )
Kind = "Standard11x17" ( .NET = PaperSize.Kind )
So you say I should always use the "Kind" property and not the "PaperName" PaperSize property ?
PaperName = "11x17" ( .NET = PaperSize.PaperName )
Kind = "Standard11x17" ( .NET = PaperSize.Kind )
So you say I should always use the "Kind" property and not the "PaperName" PaperSize property ?
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: Named Objects: Printer.PaperName
It’s hard to say exactly. It depends on the code which you are using to get the paper name. So, please try both of these variants just to be 100% sure.
-
- Site Admin
- Posts: 2449
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Named Objects: Printer.PaperName
For the correct setup of required paper you can try the following:
1. Obtain size of the needed paper.
2. Setup obtained paper size as:
SetProperty("Print.PaperWidth", paper_width_in_mm*10);
SetProperty("Print.PaperHeight", paper_height_in_mm*10);
Second method:
1. Obtain name of the required paper from supported papers list of the selected printer.
2. Pass obtained name:
SetProperty("Print.PaperName", paper_name);
1. Obtain size of the needed paper.
2. Setup obtained paper size as:
SetProperty("Print.PaperWidth", paper_width_in_mm*10);
SetProperty("Print.PaperHeight", paper_height_in_mm*10);
Second method:
1. Obtain name of the required paper from supported papers list of the selected printer.
2. Pass obtained name:
SetProperty("Print.PaperName", paper_name);
PDF-XChange Co. LTD (Project Developer)
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.