Hallo, As far as I understand, all objects must be on a page, per the PDF spec. They don't have to be visible on the page, and they will not be rendered if they are outside the bounds (i.e. off the page), but each page is rendered by itself. Part of the reason the logic is in place is to ensure small devices which have limited resources (telephones, tablets, embedded devices, etc.) can still handle PDFs which are hundreds, or thousands of pages. This way if someone goes to page 97 in a PDF, the software only has to read in objects which are associated with that page. So I don't think this is a limitation of PDFBox, but rather a limitation of the PDF file format itself (and not so much of a limitation as it is a design decision).
However, I've never worked with layers specifically, so there could be some exception made for those objects. ---- Thanks, Adam From: "Friedrich, Christian (EXT)" <[email protected]> To: "[email protected]" <[email protected]> Date: 04/15/2011 01:41 Subject: PDOptionalContentGroup and Layers Hi, currently I'm working on a tool for highlighting text in a PDF document. I mark different topics in the text with different colors. Therfore I want to use each one layer of the PDF for one color. I managed to create the layers using the LayerUtility class. This works fine for single pages. But it is not useful for me that a layer always refers to only one page.I would like to define a layer for the entire document (or at least a collection of pages), so that the user can activate or deactivate a layer for the entrie document and not for each page individually. Does PDFBox offer the functionality to create layers which do not only refer to one single page? If yes, which class provides it? Thanks! Regards Christian Friedrich Forschungszentrum Informatik Externer Dienstleister der Siemens AG Corporate Technology CT T DE TC2 Otto-Hahn-Ring 6 81739 München, Deutschland Tel.: +49 (89) 636-32801 mailto:[email protected] Wichtiger Hinweis: Diese E-Mail und etwaige Anlagen enthalten firmenvertrauliche Informationen. Sollten Sie diese E-Mail irrtümlich erhalten haben, benachrichtigen Sie uns bitte durch Antwort-Mail und löschen Sie diese E-Mail nebst Anlagen von Ihrem System. Vielen Dank. - FHA 203b; 203k; HECM; VA; USDA; Conventional - Warehouse Lines; FHA-Authorized Originators - Lending and Servicing in over 45 States www.swmc.com - www.simplehecmcalculator.com Visit www.swmc.com/resources for helpful links on Training, Webinars, Lender Alerts and Submitting Conditions This email and any content within or attached hereto from Sun West Mortgage Company, Inc. is confidential and/or legally privileged. The information is intended only for the use of the individual or entity named on this email. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this email information is strictly prohibited, and that the documents should be returned to this office immediately by email. Receipt by anyone other than the intended recipient is not a waiver of any privilege. Please do not include your social security number, account number, or any other personal or financial information in the content of the email. Should you have any questions, please call (800) 453 7884.

