If you are getting a raster image, then I would look into using JAI or the equivalent to crop/clip stuff outside your viewable area and then place it into the PDF.

If you are working with combined text, vector, raster - then iText isn't going to help you. There are, however, commercial solutions that can address that problem.

Leonard

On Jan 7, 2008, at 7:57 AM, Ziegler Stefan wrote:

Hi
is there a way to have the data in the not visible area really clipped in terms of deleted? I'm adding a existing pdf-file with the follow lines:

URL PdfUrl = (URL) aMap.get("url");
PdfReader reader = new PdfReader(PdfUrl);
Image myImg = Image.getInstance(tp);
myImg.scaleAbsolute(width, height);
myImg.setAbsolutePosition(marginX, marginY);
cb.addImage(myImg);

The remote pdf is also generated with itext. Sometimes it is really big (~1.5 Mbyte) when you'd expect something around 300 KByte. The software (geoserver) is delivering only whole features (geodata), so you see only the requested part of the features but in the invisible part of the pdf document is the whole object (e.g. a really huge street object). This behaviour makes the pdf unnecessary big.

Thanks.
Stefan

Mit freundlichem Gruss
Stefan Ziegler
Leiter Aufsicht

Kanton Solothurn
Bau- und Justizdepartement
Amt für Geoinformation
Rötistrasse 4
4501 Solothurn
Telefon 032 627 75 96
Telefax 032 627 75 98
[EMAIL PROTECTED]
http://www.so.ch
---------------------------------------------------------------------- ---
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to