Insert/Replace PDF page(s) based on Text on existing page

Discussions about PDF management.
Post Reply
Kennneth
Posts: 5
Joined: Wed Apr 06, 2011 10:34 pm

Insert/Replace PDF page(s) based on Text on existing page

Post by Kennneth » Mon Aug 26, 2013 11:01 am

Hi

Is it possible to Insert/Replace PDF page(s) based on Text on existing page.
And the Existing page with the text is the one that must be deleted/replaced.

Thanks..
Kenneth

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: Insert/Replace PDF page(s) based on Text on existing pag

Post by SamiKharma » Tue Aug 27, 2013 10:39 am

Hi,

Yes and its simple.
1. Select the page
2. Use GetPageText
3.Use the .NET String.Contains, if it is found: use DeletePage.

I hope this helps.

Best,
Sami

Kennneth
Posts: 5
Joined: Wed Apr 06, 2011 10:34 pm

Re: Insert/Replace PDF page(s) based on Text on existing pag

Post by Kennneth » Tue Aug 27, 2013 10:43 am

Thanks...

But, it is than possible to Insert/merge a new pdf document into the place where I just have deleted a page..

Like :
- I delete page 11
- then I insert a new pdf document ( 3 pages ), that becomes page 11-13....

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: Insert/Replace PDF page(s) based on Text on existing pag

Post by SamiKharma » Tue Aug 27, 2013 11:26 am

Hi,

Yes, you just have to add a new page in the destination pdf for each page in the source pdf, and select each page in the source pdf and draw it on the destination.
You need to use:
InsertPage: https://www.gdpicture.com/guides/gdpicture/v10/html/co ... teger.html
DrawPage: https://www.gdpicture.com/guides/gdpicture/v10/html/co ... ingle.html

Best,
Sami

Kennneth
Posts: 5
Joined: Wed Apr 06, 2011 10:34 pm

Re: Insert/Replace PDF page(s) based on Text on existing pag

Post by Kennneth » Tue Aug 27, 2013 11:28 am

Thanks Again.

I will try it soon.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests