[
https://issues.apache.org/jira/browse/PDFBOX-5853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17869176#comment-17869176
]
Tilman Hausherr edited comment on PDFBOX-5853 at 7/28/24 2:58 PM:
------------------------------------------------------------------
What you want is PDDocument.getDocument().getDocumentID(). But I agree with
you, it's a documentation problem. The following explanation is invisible to
the ordinary user:
{code}
// keep tracking customized documentId for the trailer. If null, a new id
will be generated
// this ID doesn't represent the actual documentId from the trailer
private Long documentId;
{code}
was (Author: tilman):
What you want is PDDocument.getDocument().getDocumentID(). But I agree with
you, it's a documentation problem.
> the PDDocument.documentId does not seem to be written into the flat byteStream
> ------------------------------------------------------------------------------
>
> Key: PDFBOX-5853
> URL: https://issues.apache.org/jira/browse/PDFBOX-5853
> Project: PDFBox
> Issue Type: Bug
> Components: Documentation, Writing
> Affects Versions: 3.0.2 PDFBox
> Reporter: Dieter von Holten
> Priority: Major
>
> writing a PDDocument does not seem to include the documentId. The field is
> looked at in COSWriter (and mixed into some md5sum), but it is not explicitly
> written.
> Upon restoring the PDDocument from byteStream, the field documentId contains
> null.
> Is that the expected behaviour?
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]