PDFedit Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000337 [PDFedit] =Other (Commandline)= minor always 09-30-09 23:01 09-30-09 23:01
Reporter lamby View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version
Summary 0000337: Calling doc.save()/doc.saveAs() in console does not persist changes to disk
Description If I place the following script into "testscript":

document = loadPdf("/home/lamby/IMSLP39260-PMLP55706-Marais-PiecesDeViole-Livre-II-Solo.pdf");

for (i = 1; i < document.getPageCount(); ++i) {
    rotate = (i % 2 == 0) ? 90 : 270;
    document.getPage(i).getDictionary().propertyDef("Rotate", 0).set(rotate);
}

document.saveAs("/home/lamby/new.pdf");

.. and then run "pdfedit -s testscript", the resulting new.pdf file does not have the rotations applied. However, if I run that loop within the GUI (and then manually run go()), the are persisted if I save to disk.
Additional Information
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
09-30-09 23:01 lamby New Issue