Forum for the PDF-XChange Editor - Free and Licensed Versions
Moderators:TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
Thanks for the post - Can you please post the whole script that you're running?
Thanks,
If it helps, here we go:
function getPages(){
var bFileOpen = false;
var d = app.activeDocs;
var myDoc;
if (d.length>0)
{
// app.alert("Geöffnete Doks!");
for (var i = 0; i < d.length; i++)
{
if (d.documentFileName == "PDF-Druckversionfertig Copy.pdf")
{
d.bringToFront();
bFileOpen=true;
myDoc=d;
break;
}
}
// Apply the function app.popUpMenuEx to the app object, with an array
// of parameters aParams
var cChoice = app.popUpMenuEx.apply( app, aParams );
if ( cChoice != null )
{
// app.alert(cChoice);
var aPage = cChoice.split(",");
var cStart = --aPage[0]; // first element
var cEnd = --aPage[1]; // Second element
var cFile = aPage[2]; // third element
var annots = myDoc.getAnnots({
nPage:0
});
if (annots!=null)
{
for (var i = 0; i < annots.length; i++)
{
annots.destroy();
}
}
titel=cTitel;
if (titel==null) titel = "PDF überarbeitet";
var aRect = myDoc.getPageBox( {nPage: 0} );
aRect[0] += 0.5*cm;// from upper left corner of page
aRect[2] = aRect[0]+ 7*cm; // Make it 2 inch wide
aRect[1] -= 0.3*cm;
aRect[3] = aRect[1] - 0.6*cm; // and .5 inch high
var f = myDoc.addField("p."+ number, "text", 0, aRect );
Thanks for that - I've tested here and it appears to be working for me, with the Version 8 internal pre-release that I'm using. Version 8 is set to be released within the next week or so, provided our internal tests don't turn up any major issues.
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
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
Thanks for that - I've tested here and it appears to be working for me, with the Version 8 internal pre-release that I'm using. Version 8 is set to be released within the next week or so, provided our internal tests don't turn up any major issues.
Thanks,
I´`'m looking forward to test the version 8,
Regards,
Fritz
"You cannot know the meaning of your life until you are connected to the power that created you.” Shri Mataji Nirmala Devi, founder of Sahaja Yoga
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Thanks for that - I've tested here and it appears to be working for me, with the Version 8 internal pre-release that I'm using. Version 8 is set to be released within the next week or so, provided our internal tests don't turn up any major issues.
Thanks,
Hi Will,
Today I tested the new version 8 and it works again,
Regards,
Fritz
"You cannot know the meaning of your life until you are connected to the power that created you.” Shri Mataji Nirmala Devi, founder of Sahaja Yoga