Hi,
There is no example but you can use the COS API commands to do it. It
starts this way, assuming that "page" is your page and "dict" the
pieceinfo dictionary :
page.getCOSObject().setItem(COSName.getPDFName("PieceInfo"), dict);
use PDFDebugger to look at your PDF and maybe compare it with an
existing PDF that has such PieceInfo content.
Tilman
On 03.04.2025 17:24, Stéphane Vogler wrote:
Hello,
I cannot find any example concerning using a page-piece dictionary to hold
private conforming product data. This is what I am trying to achieve:
A page-piece dictionary may be used to hold private conforming product data.
The data may be associated with a page or form XObject by means of the optional
PieceInfo entry in the page object or form dictionary.
(section 14.5 of ISO
32000-1<http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/PDF32000_2008.pdf>).
I ideally want to achieve this using the latest release of PdfBox.
If you could kindly point me to a resource or provide me with an example, it
would be greatly appreciated.
Stephane.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org