Change default page size

PDF-XChange Editor SDK for Developers

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
chavas
User
Posts: 141
Joined: Tue Mar 15, 2016 12:21 pm

Change default page size

Post by chavas »

How do I change the default page size of the 'New Empty Document' window.
Dim cmd As PDFXEdit.IUIX_Cmd = uiInst.CmdManager.Cmds.Find("cmd.newDoc")
If (cmd Is Nothing) Then
Return
End If
pdfctrl.Inst.ExecUICmd2(cmd.ID)

See the attached screen shot. I would like to change it to US letter .

thank you
You do not have the required permissions to view the files attached to this post.
Sasha - PDF-XChange
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am

Re: Change default page size

Post by Sasha - PDF-XChange »

Hello chavas,

Use the operation instead:
https://sdkhelp.pdf-xchange.com/vie ... ewBlankDoc

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ