Xojo Conferences
XDCMay2019MiamiUSA

Re: [MBS] DYNA PDF Plugin find and replace text (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] [ANN] MonkeyBread Software Releases IP in menubar 4.4
Next thread: Re: [MBS] Mbsplugins monkeybreadsoftware.info Digest, Vol 489, Issue 4


Re: [MBS] DYNA PDF Plugin find and replace text   -   Christian Schmitz
  [MBS] DYNA PDF Plugin find and replace text   -   Todd Fantz

Re: [MBS] DYNA PDF Plugin find and replace text
Date: 27.04.14 10:15 (Sun, 27 Apr 2014 11:15:44 +0200)
From: Christian Schmitz

Am 27.04.2014 um 01:15 schrieb Todd Fantz <<email address removed>>:

> Hi,
>
> After creating a new DynaPDFEditTextMBS object, I call .EditPage and then follow the existing editor.FindPattern + editor.ReplacePattern with other pairs of FindPattern+ReplacePattern instance.
>
> The problem is that only the first one works and gets written to the file?

Are you sure you have no bug in your code?

I just tried my "edit text.rbp" example and put those lines there:

found = editor.FindPattern("2002")
editor.ReplacePattern("2010")

found = editor.FindPattern("verbleibenden")
editor.ReplacePattern("test1")

found = editor.FindPattern("Allgemeine")
editor.ReplacePattern("test2")

and all three are saved.

Sincerely
Christian

[MBS] DYNA PDF Plugin find and replace text
Date: 27.04.14 00:15 (Sat, 26 Apr 2014 19:15:47 -0400)
From: Todd Fantz
Hi,

I need to open a PDF and then find and replace several pieces of text.

I started with the "edit text" example in the DYNA PDF/examples/text editing folder.

After creating a new DynaPDFEditTextMBS object, I call .EditPage and then follow the existing editor.FindPattern + editor.ReplacePattern with other pairs of FindPattern+ReplacePattern instance.

The problem is that only the first one works and gets written to the file?

Can I replace multiple times in on Editpage session?

It seems to work if if I make a new .EditPage+.ClosePage for each piece of text I want to replace, but that seems kind of inefficeint?

Regards,

Todd Fantz
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info