Dne 12/24/2012 11:52 PM, Alejandro Ramos Encinosa napsal(a):
> 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?

Hi Ale,

regarding scripting see
http://pdfedit.petricek.net/wiki/ScriptingAddNewScript

regarding flattening, that is how it is done, if you know c++ it should 
be pretty simple, probably not effective though.

Jozef





>
> 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 <arencin...@gmail.com> 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
>>
>


------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Pdfedit-support mailing list
Pdfedit-support@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdfedit-support

Reply via email to