You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2024/07/28 14:59:00 UTC
[jira] [Comment Edited] (PDFBOX-5853) the PDDocument.documentId does not seem to be written into the flat byteStream
[ 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org