Op 16/03/2011 0:37, thomen schreef: > is there a way to set a stacking order on layers?
Hello Tom, in PDF, you have the content of a page that is stored in the page content stream and XObjects. You also have content in annotations (such as widget annotations for form fields). Annotations are NOT part of the content stream. They are stored as dictionaries in the /Annots array of the page. When a PDF viewer renders a PDF, the content of a page is rendered first. The annotations are shown "on top of" the content of the page. That explains what is happening: - you add the image as an XObject to the content stream. - you make the annotation that covers the content stream opaque. Which type of field are you using? I suggest you use a pushbutton. Pushbuttons can hold an icon. If you want to position and scale your image, you could insert the image into the pushbutton as its icon. You can also change the backgroundcolor of the pushbutton. This way, the image won't be covered by the widget annotation. Instead it will be a part of the annotation. ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
