How to change PAGESETUP (PAPERSIZE)

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - Please use the PDF-Tools SDK Forum for Library DLL assistance.

Moderators: Tracker Support, TrackerSupp-Daniel, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Andrew - Tracker Support, Tracker - Clarion Support, John - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software, Support Staff, moderators

Post Reply
igorg
User
Posts: 38
Joined: Thu Nov 30, 2006 7:51 am

How to change PAGESETUP (PAPERSIZE)

Post by igorg » Thu Nov 30, 2006 12:42 pm

How can i change PaperSize in Printer Preferences of default driver
"PDF-XChange 3.0" from VB or C# application

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Fri Dec 01, 2006 12:06 pm

Hi,

This has been answered quite a few times now - no complaints - but would save you delays if you searched the forum first for such topics :)

PDF-XChange acts as would any physical printer and should be documented in your VB/C# help see topic : DEVMODE also just one of the previous answers below

Please see :

http://www.tracker-software.com/forum/v ... php?t=1417

Hope that helps :)
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

igorg
User
Posts: 38
Joined: Thu Nov 30, 2006 7:51 am

Post by igorg » Mon Dec 04, 2006 10:32 am

thanks for DEVMODE explanation, but the problem is when i change the
PaperSize with devmode or in PrinterDriver Preferences the PDF page
Appear in the same Size 8.27 x 11.69 in. and in the PrintSetup of page i see the my PaperSizes like A3 paper Size or letter size or A4 size. How can i change the PDF format and not only the PageSetup format?

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Mon Dec 04, 2006 10:48 am

Hi,

If I understand you correctly - you want not just to change the size of the paper when creating the PDF programmatically - but you also want the papersize in the User Interface to be changed - so if the user looks at the print preferences - they will see the paper size is changed there too ?

A colleague suggests you take a look at the information available below - :

This algorithm is detailed within the description of the Windows' API function DocumentProperties:

http://msdn.microsoft.com/library/defau ... l_7k1f.asp

and you may also find this useful too :

http://support.microsoft.com/default.aspx/kb/167345/

If I have misuderstood you question - please explain in more detail - thanks.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

igorg
User
Posts: 38
Joined: Thu Nov 30, 2006 7:51 am

Post by igorg » Mon Dec 04, 2006 11:42 am

The Word document PaperSize is A4.
The PDF Document PaperSize must to be A3.
This is My Convert Steps and the Results.
1. I change the Print Preference of PDF EXChange Printer PaperSize to A3.
2. I make the PDF EXChange Printer the Default Printer.
3. I print the word documnet to the PDF EXChange Printer.
4. I open the new PDF Document with Acrobat 7 Viewer.
5. In the Printer Preference (UI) the PaperSize is Fine it is like need to be.
A3
6. In PDF Document properties the paper size is A4 and not A3.
you can see the PDF Document properties by File Menu in PDF Viewer and Document Properties there you can see the PageSize A4 and not A3.

What can i do ?

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Mon Dec 04, 2006 11:50 am

Understood,

Some applications will over ride any settings you define externally - No matter what you do they will apply the settings as defined in the Host application - the only way to change these is via altering the Page setup in the host application itself - this is true of any printer you try and print to - not just PDF-XChange

I am afraid MS Word is just such an application and the only way you can modify this is in Word itself - You can programmatically open and modify a document (using OLE for example) in MS Office (providing it is resident on the PC) in the background - you will need to look at Microsofts documentation on this subject starting here:

http://msdn2.microsoft.com/en-us/office/default.aspx

There is no alternative I am afraid.

HTH
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

igorg
User
Posts: 38
Joined: Thu Nov 30, 2006 7:51 am

Post by igorg » Mon Dec 04, 2006 12:04 pm

Thank You !!!

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Mon Dec 04, 2006 3:51 pm

Pleasure :)
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

Post Reply