Replace image in pdf

  • Follow


Hi

I have to replace an image in about 1000 pdf's. The position and the
size of the image is ever the same, so I have only:
1. Open pdf.
2. Delete the image at position x/y
3. Set a new image to position x/y
4. Save pdf.

Is there a way to do this automatically?
Which tools van I use for that?
If there is no toll for doing that, is there a library for easy doing
this manipulation. (E.g. a Java library or something else..)?

Thanks.
-- 
Oliver Hirschi
http://www.FamilyHirschi.ch

0
Reply Oliver 10/26/2005 3:38:21 PM

While it's difficult to erase an image it's quite easy to put an image
on top of other, if you happen to know where the first image is. iText
can do it with a couple of Java or C# lines.

Best Regards,
Paulo Soares

Oliver Hirschi wrote:
> Hi
>
> I have to replace an image in about 1000 pdf's. The position and the
> size of the image is ever the same, so I have only:
> 1. Open pdf.
> 2. Delete the image at position x/y
> 3. Set a new image to position x/y
> 4. Save pdf.
>
> Is there a way to do this automatically?
> Which tools van I use for that?
> If there is no toll for doing that, is there a library for easy doing
> this manipulation. (E.g. a Java library or something else..)?
> 
> Thanks.
> -- 
> Oliver Hirschi
> http://www.FamilyHirschi.ch

0
Reply Paulo 10/26/2005 11:22:49 PM


Paulo Soares wrote:

> While it's difficult to erase an image it's quite easy to put an image
> on top of other, if you happen to know where the first image is. iText
> can do it with a couple of Java or C# lines.

If it were a bitmap image you could do some PostScript trickery to remove 
it. If you hook imagemask to do nothing the bitmap won't get displayed. 
Then you can add your own image later on.

> Oliver Hirschi wrote:
> > I have to replace an image in about 1000 pdf's. The position and the
> > size of the image is ever the same, so I have only:
> > 1. Open pdf.
> > 2. Delete the image at position x/y
> > 3. Set a new image to position x/y
> > 4. Save pdf.

You could  do it this way:

1) make the page an EPS; run acroread within a bash script.
2) Run LaTeX to include this EPS and the overprinting EPS.
3) run dvips+gs or even 2) run pdfLaTeX.

All for free, but you would have to learn how to use these tools.
Eric
0
Reply Eric 10/27/2005 6:47:39 AM

2 Replies
510 Views

(page loaded in 0.099 seconds)

Similiar Articles:













7/23/2012 7:56:41 AM


Reply: