Thanks for the reply.

1T3XT info wrote:
> Claas Jäger wrote:
>> I have a PDF file wich, if converted that way, has an enormous size (> 
>> 80MB). I figured out that the elements that make th PS so huge are 1.) a 
>> pattern used on the page to simulate grey background on a certain area 
>> and 2.) a transparent layer above that pattern.
> 
> Is there no way to prevent that these patterns are added?
> Maybe if you change something earlier in the workflow,
> you can avoid this problem.

Unluckily i can not change the fact that the pattern is added, as that 
part is done from another vendor, who is not willing to adopt the workflow.

>> Now I am trying to remove th 2 objects from the PDF file using iText. My 
>> problem is that 1.) i am not possible to find these objects using iText 
>> and
> 
> What if you compare the bytes? You have those bytes in Pattern_only.pdf
> If the pattern is identical for all PDFs, then you could try to find 
> that pattern in a stream in the other PDFs.
> 
I will try to analyse the stream contents and to identify the pattern 
that way, thanks for the tip.

>> 2.) since i do not know which is the object to remove i can't do it.
> 
> Once you know where to find that pattern. Use killIndirect (maybe
> you'll have to replace the object with a smaller stream).

I will try it that way, ince i figured out if i can identify the stream.

> It's probably possible to achieve what you want with iText,
> but it will demand plenty of programming.

I was afraid that that would be the answer ;)

I will report here if i found a solution to this.

-- 
Mit freundlichen Grüßen

Claas Jäger

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to