Hello,
I want to create a new document From Blank Page using JS function. How to do this ? Can I change the default name "New Document" ?
thanks for help.
New Document
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: New Document
Next JS function allows creating new blank document:
You can easily change document name by using "DispFileName" document property in Viewer ActiveX. Next code will change name for active document.
Also in new build will be available new method "CreateNewBlankDocument" which allows you to create new document just as it can be done with "New Empty Document" dialog in PDF-XChange Viewer (File->New document->From blank page...)
Code: Select all
app.newDoc(420,595);
Code: Select all
CoPDFXCview1.SetDocumentProperty(0, "DispFileName", "Some new document name",0);