Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pdfcpu: validateDateObject: <D:> invalid date #667

Closed
meerkat-mary opened this issue Aug 2, 2023 · 8 comments
Closed

pdfcpu: validateDateObject: <D:> invalid date #667

meerkat-mary opened this issue Aug 2, 2023 · 8 comments
Assignees

Comments

@meerkat-mary
Copy link

Hi @hhrutter

We're facing an issue where pdf validation is unsuccessful due to the following validation error pdfcpu: validateDateObject: <D:> invalid date

We're able to open and view these files successfully in Mac Preview and Acrobat Reader on Mac OS Ventura and Windows 7/10 respectively using the latest commit (v0.4.3-0.20230731072739-a9afcfe68388).

output.log

Thank you!
Mary

@hhrutter
Copy link
Collaborator

hhrutter commented Aug 2, 2023

Well @Samsung, this is no date:

 3:   offset=     252 generation=0 types.Dict 
<<
	<CreationDate, (D:)>
	<Creator, (Samsung Electronics)>
	<ModDate, (D:20230511171649+04'00')>
	<Producer, (Samsung Electronics)>
>>

Will be fixed in the upcoming commit.

@meerkat-mary
Copy link
Author

Thank you @hhrutter!

hhrutter added a commit that referenced this issue Aug 7, 2023
@hhrutter
Copy link
Collaborator

hhrutter commented Aug 7, 2023

Should be fixed with latest commit!

@hhrutter hhrutter closed this as completed Aug 7, 2023
@meerkat-mary
Copy link
Author

This works in the latest commit - thank you very much @hhrutter ! ⭐

@eladb2011
Copy link

Hey @hhrutter , I know this issue is already closed, but we've faced the same issue but with this format:
pdfcpu: validateDateObject: <D:20230912144809Z'0> invalid date

Thanks, and very appreciate the great work on this tool that saved me tones of time.
Elad

@hhrutter
Copy link
Collaborator

Fix is in the works!

pedromg added a commit to pedromg/pdfcpu that referenced this issue Oct 1, 2023
@pedromg
Copy link

pedromg commented Oct 1, 2023

Hi @hhrutter,

we have a lot of PDF-1.2 with no CreationDate and no ModDate, failing relaxed mode validations.
Under relaxed mode with no PieceInfo should validation pass ? commit 2d8a5b6

@hhrutter
Copy link
Collaborator

hhrutter commented Oct 1, 2023

If there is a PieceInfo then ModDate is required.
Other than that I would have to see a stack trace or even better a sample file in order to provide a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants