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.

> 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.

> 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).

It's probably possible to achieve what you want with iText,
but it will demand plenty of programming.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
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