PDDoc.Save with PDSaveIncremental - first creates a copy of a file?


i'm trying automate things vbs (or jscript, doesn't matter) in wsh, there problem. consider, example, script:

 

set pddoc = createobject("acroexch.pddoc")
pddoc.open "c:\1.pdf"
pddoc.setinfo "test", "test"
pddoc.save 0, "c:\1.pdf"
pddoc.close

the file hundreds megabytes, takes noticeable time , can see temporary file in working directory, while file being saved. saving incremental (i checked), file first copied new one.

 

on other hand, with

 

set pddoc = createobject("acroexch.pddoc")
pddoc.open "c:\1.pdf"
pddoc.setinfo "test", "test"
set jso = pddoc.getjsobject
pddoc.openavdoc ""
jso.app.execmenuitem "save"
jso.app.execmenuitem "close"
pddoc.close

i "quick" incremental saving, don't want open file in viewer.

 

do anythig wrong in first script? or there no solution?



More discussions in Acrobat SDK


adobe

Comments

Popular posts from this blog

CS5 Adobe Media Encoder: Encode failed because the source duration is nil.

cf_sql_integer vs cf_sql_bigint vs cf_sql_int??

localhost/joomla15/administrator doesnt work - Joomla! Forum - community, help and support