pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Hewson <j...@jahewson.com>
Subject Re: Replacing a vector image with a bitmap
Date Thu, 12 Nov 2015 18:24:15 GMT

> On 11 Nov 2015, at 23:53, Hartmann Toël <Toel.Hartmann@elanders.com> wrote:
> 
> We have (a lot) of customer pdf with som over complicated logotype in vector graphic.
> This image takes a lot of time and memory to process for the different parser implementations.
(gs, and even professional printing systems) 
> 
> I was hopping to be able to search for the vector logo in the pdf, replace it with a
rendered image and save the document back as a pdf.
> Rendering to a image and replacing the page is interesting but will make eventual editing
of the pdf difficult.

It should be possible to replace just the logo with a bitmap, rather than the entire page.

— John

> What do you think?
> 
> /Toël
> 
> On 12 nov 2015, at 08:34, John Hewson <john@jahewson.com> wrote:
> 
>> 
>>> On 11 Nov 2015, at 22:54, Hartmann Toël <Toel.Hartmann@elanders.com> wrote:
>>> 
>>> Hi,
>>> 
>>> Is it possible to replace a vector image with a bitmat in a pdf using pdfbox?
>> 
>> Yes, it should be. You can render a PDF page to an image, so if you know which
>> portion of the page you’re interested in then you could insert that into the original
>> PDF in place of the vector content. I’m not sure why you’d want to do that, but
>> I suppose there’s a good reason.
>> 
>> — John
>> 
>>> Best regards
>>> 
>>> Toël Hartmann
>>> 
>>> 
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
>>> For additional commands, e-mail: users-help@pdfbox.apache.org
>>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
>> For additional commands, e-mail: users-help@pdfbox.apache.org
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message