Topic Options
#57279 - 11/03/19 04:17 AM Replace Text in PDF
Bashir Offline
OL Newbie

Registered: 11/03/19
Posts: 1
Hello,

I want edit text in a PDF file, I m using Alambic API to edit the PDF but I cannot replace the text as I am not able to find any method in Alambic API for replace function.

My script is as follows.

MyPDF.Open Watch.GetJobFileName,False
Set MyPages = MyPDF.Pages
NumberOfPages = MyPDF.Pages.Count
for i = 0 to NumberOfPages - 1
MyPages.replace "ABC","XYZ"
next
Set MyPages = nothing
MyPDF.Save True


Regards,
Bashir.

Top
#57301 - 11/11/19 08:24 AM Re: Replace Text in PDF [Re: Bashir]
Philippe F. Offline
OL Expert

Registered: 09/06/00
Posts: 1928
Loc: Objectif Lune, Montreal, Qc
No tool included in PlanetPress Suite allows you to replace text inside a PDF. The best you can do is extract text, replacing whatever needs to be replaced, and then generate a new PDF from that data.
_________________________
Technical Product Manager
I don't want to achieve immortality through my work; I want to achieve immortality through not dying - Woody Allen

Top