"Print to file" PDF metadata broken

Bug #819995 reported by Michael Kreuzer
40
This bug affects 8 people
Affects Status Importance Assigned to Milestone
cairo (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Ubuntu 11.04 Natty Narwhal 64bit

libgnomeprint2.2-0 - 2.18.8-0ubuntu1

It seems libgnomeprint sends wrong date, Jan 1st 1970 to PDF metadata when printing to file (PDF)
This behaviour is reproducible for me on both 64bit and 32bit versions of 11.04

Using dialog "print to file" choosing PDF as output format "Creation Date" and "Last edited" is always set to "Thu 01 Jän 1970 00:59:59 CET" which is afaik Date 0 for Unices.
I am using german localization but in case of needed screenshots I can of course change to english.
This behaviour happens on my main machine (64bit) and my old notebook (32bit) looking to my self produced PDFs from 10.10 definitely show the same behaviour, I could also look on old backups for even older version.

Revision history for this message
Yusuf Bolu (yusufbolu) wrote :

It is the same for me.

Revision history for this message
Michael Kreuzer (penulci) wrote :

I still see this issue in 12.04 and it seems the bug is based on the Cairo lib, since it also occurs on other programs creating PDFs based on libcairo like Inkscape

affects: libgnomeprint (Ubuntu) → cairo (Ubuntu)
Changed in cairo (Ubuntu):
status: New → Confirmed
Revision history for this message
Michael Kreuzer (penulci) wrote :

I forgot to mention, actual version of libcairo I am using actually is libcairo2 1.10.2-6.1ubuntu3 and printing date "Jan 1st, 1970 00:59:59 CET" apperas on each system 32bit and 64bit.

Greetings, Michael

Revision history for this message
Michael Kreuzer (penulci) wrote :

Just upgraded to Ubuntu 12.10 using libcairo2-1.12.2-1ubuntu2 on Ubuntu 12.10 64bit and the printing date is still "Jan 1st, 1970 00:59:59 CET". My timezone is set to CET or at the moment CEST.
The pity is I have no other cairo using OSes by hand so I am afraid I cannot proof whether the bug is Ubuntu/Debian specific or a general libcairo bug.

Greetings, Michael

Revision history for this message
Alf HP Lund (alf-c) wrote :

I'm noticing this on ubuntu 12.10 (32-bit)

In addition to the print to file, this bug affects several programs, at the very least SImple Scan and Inkscape.

When viewing the pdf properties with evince, it says the pdf was created by libcairo 1.9.5

Revision history for this message
Michael Kreuzer (penulci) wrote :

The same issue still happens in 14.04. I think I should get used to it ;-)

Michael

Revision history for this message
Nicola Corti (corti-nico) wrote :

I'm on 15.04 and I'm still having this issue. Any workaround?

information type: Public → Public Security
information type: Public Security → Public
Revision history for this message
Francesco (frapox) wrote :

The same here. Ubuntu 15.04 and Cairo 1.9.5

Quite frustrating issue...

Revision history for this message
Yusuf Bolu (yusufbolu) wrote :

After 5 years from my first comment above, the annoying bug is still here.
Creator: cairo 1.14.6
Created: Thu 01 Jan 1970 01:59:59 EET

Revision history for this message
gna (nagy-gergely) wrote :

I have tried some solutions before i found this bug,

An extract of metadata made with exiftool (libimage-exiftool-perl 9.46-1) shows an important difference on a document that displaying dates right, and one sample print-to-file, the tags for PDF related date info is totally missing:

-PDF:CreateDate=
-PDF:ModifyDate=

Example command:
exiftool -args -G1 --filename --directory PDF_FILE_NAME.PDF

Example output of Print-to-File:
-ExifTool:ExifToolVersion=9.46
-System:FileSize=107 kB
-System:FileModifyDate=2018:02:22 00:56:18+01:00
-System:FileAccessDate=2018:02:22 00:56:40+01:00
-System:FileInodeChangeDate=2018:02:22 01:30:18+01:00
-System:FilePermissions=rw-rw-r--
-File:FileType=PDF
-File:MIMEType=application/pdf
-PDF:PDFVersion=1.5
-PDF:Linearized=No
-PDF:PageCount=1
-PDF:Creator=cairo 1.13.1 (http://cairographics.org)
-PDF:Producer=cairo 1.13.1 (http://cairographics.org)

Example output of PDF with working dates:
-ExifTool:ExifToolVersion=9.46
-System:FileSize=3.2 MB
-System:FileModifyDate=2015:11:02 14:37:59+01:00
-System:FileAccessDate=2018:02:22 01:49:42+01:00
-System:FileInodeChangeDate=2015:11:02 14:37:59+01:00
-System:FilePermissions=rw-r-----
-File:FileType=PDF
-File:MIMEType=application/pdf
-PDF:PDFVersion=1.5
-PDF:Linearized=No
-PDF:PageCount=89
-PDF:Language=en-US
-PDF:TaggedPDF=Yes
-PDF:Title=XenServer 6.x Best Practices
-PDF:Author=Daily, Camille
-PDF:Keywords=Minimum Restrictions, No Restrictions
-PDF:Creator=Microsoft® Word 2013
-PDF:CreateDate=2013:10:30 08:44:27-05:00
-PDF:ModifyDate=2013:10:30 08:44:27-05:00
-PDF:Producer=Microsoft® Word 2013

evince 3.10.3-0ubuntu10.4 amd64
libcairo2 1.13.0~20140204-0ubuntu1.1 amd64
Description: Ubuntu 14.04.5 LTS
Kernel: Linux 3.13.0-142-generic #191-Ubuntu SMP x86_64

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.