|
From: Alejandro R. E. <are...@gm...> - 2012-12-24 22:52:16
|
Well, I just realize that there is a "flatten" tool that: - ask for an existing (PDF) file path; and then - ask for an output (PDF) file path; and then - save into the second file the last version of every object into the first file. So, this seems to do what I need, but not in the way I expected to: do I really need to save the current changes, and then invoke the flatten tool with the file path? Am I really unable to just process the current (in-memory) document? Any way, all I need now is to know how to script my goal: - open a PDF file; - make some texts replacements; - (optionally) draw lines/rects at fixed positions; - save the document ensuring that it will contain just one revision. The only way I know so far for achieving this, is to save first the document with new revisions and then pass its path to the flatten tool, but even this way, I don't know how to write an script for all this. Any help? In the meanwhile, I will look deep into the code trying to find a way to use a shortcut. On 12/23/12, Alejandro Ramos Encinosa <are...@gm...> wrote: > Hi all. > > As far as I've read, once we save all changes, a new revision is created. > My goal is to "rewrite" the current content instead of creating a new > revision into the document: lets say I "spellcheck" the content of the > document, I need then to be able to save the changes in a way in which > the wrong words are no longer into the final PDF. Is there any way in > which I can accomplish it? > > In the case in which the current pdfedit implementation doesn't cover > such functionality, what should I modify to get the expected result? > > Thanks in advance. > > -- > Ale > -- Ale |