MozillaZine

PDF creation with the right timestamp (Linux)

Discussion of features in Mozilla Firefox
frapox
 
Posts: 4
Joined: August 14th, 2015, 3:14 am
Location: near Milan, Italy

Post Posted August 14th, 2015, 3:20 am

Hi all, I'm using Firefox since version 0.8 so I'm very satisfied with it.

A strange thing occours when printing a web page on a file, with the purpose of creating a PDF: the timestamp of the resulting PDF is strangely always Jan 01, 1970, despite of the web page or the time. Here is running the last version of Firefox, 40.0, on Ubuntu 15.04 (anyway, I had the same issue with previous versions).

Is this happening to anyone of you? Is there a way to fix it?
So, I need to create PDFs which have right date-time stamp. Is this possible, and how?

Thanks in advance,
Francesco
Last edited by DanRaisch on August 14th, 2015, 4:25 am, edited 1 time in total.
Reason: "(Linux)" added to subject line.

malliz
Folder@Home

User avatar
 
Posts: 43360
Joined: December 7th, 2002, 4:34 am
Location: Australia

Post Posted August 14th, 2015, 4:38 am

Is your system time and date correct?
What sort of man would put a known criminal in charge of a major branch of government? Apart from, say, the average voter.
"Terry Pratchett"

frapox
 
Posts: 4
Joined: August 14th, 2015, 3:14 am
Location: near Milan, Italy

Post Posted August 14th, 2015, 7:17 am

malliz wrote:Is your system time and date correct?


Of course, it is. Auto-updated via time server.

therube

User avatar
 
Posts: 18133
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Post Posted August 14th, 2015, 7:20 am

when printing a web page on a file, with the purpose of creating a PDF

And you're doing that, how?
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript

frapox
 
Posts: 4
Joined: August 14th, 2015, 3:14 am
Location: near Milan, Italy

Post Posted August 14th, 2015, 7:35 am

therube wrote:
when printing a web page on a file, with the purpose of creating a PDF

And you're doing that, how?


File > print (or CTRL+P)

You can choose to "print on a file" and choose PDF as saving format. I'm using Ubuntu, don't know if the Win version of FF has the same feature.

therube

User avatar
 
Posts: 18133
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Post Posted August 14th, 2015, 10:22 am

> don't know if the Win version of FF has the same feature

No, it does not.
Though the same functionality can be obtained by adding a "pdf printer" utility as a Windows "printer".

Got to figure that is all that happens on your end, only it is "just there" automatically, that you didn't need to specifically go out & find a utility to do that.

Likewise I'd figure that any (odd) dating like your seeing is being cased by whatever that particular utility is on your end, & not by FF itself.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript

frapox
 
Posts: 4
Joined: August 14th, 2015, 3:14 am
Location: near Milan, Italy

Post Posted August 15th, 2015, 4:26 am

therube wrote:> don't know if the Win version of FF has the same feature
Likewise I'd figure that any (odd) dating like your seeing is being cased by whatever that particular utility is on your end, & not by FF itself.


I think you are right, therube. Making a little deeper search it seems that FF uses a library called "Cairo graphics" to make PDF from a web page, on Linux.

So now, the question is: how to configure Cairo in a way that it saves the correct date. For me, it's important to have the right metadata embedded in PDF files for archiving purpose.

Return to Firefox Features


Who is online

Users browsing this forum: No registered users and 1 guest