Can I print an email with its filename
I have a number of emails saved as .pdf files.
It is easy enough to print them but I'd like to also print the filename in the top right corner so that the printed pages show the email with their filename (not the full path) in the top right corner. I have used "convert" on .jpg files but this does not work (easily) on PDF files. How can I do that? Thank you for your help. |
google is your friend: https://superuser.com/questions/4523...-in-a-pdf-file
|
Quote:
https://www.linuxquestions.org/quest...ce-4175722994/ https://www.linuxquestions.org/quest...le-4175720764/ https://www.linuxquestions.org/quest...ck-4175728390/ If you're created the source PDF's, why not write a script to simply insert the filename at the top, before PDF conversion??? Or use Libreoffice and set the header/footer to print it?? Or use convert: Code:
#!/bin/bash |
It is not emails I am sending, it is emails I have received over the years and saved on my machine as pdf files.
Imagemagick keeps giving errors apparently due to the size limit (that's my research) and being a one off job, I am hoping not to have to change config files. As I have said, "convert" works on jpg files (photos attached to emails) but not on the pdf files (emails) and processing files one at a time is not a option since I have to print a number of copies of each. I am amazed to see that linuxquestion.org survives when some of its members try their best to make one feel unwelcome. |
Quote:
Quote:
Quote:
Quote:
|
I don't really understand why do you want to print them, no one will read these, ever. Additionally you wanted to print the pdf with filenames, you do not need to convert anything, the print tool can do this without changing the pdf files (regardless of the number of copies). Just read the link or any other similar page about that. And as it was mentioned you have got a lot of different advice already.
|
This is an unusual situation and it is also a court case.
The "opposing party" thought that, to confuse their opponents (me), they produced a single "image" consisting of 198 photos presumably thinking that their opponents would not be able to refer to any of the 198 photos individually. I splitted these images and the first and the only person confused was the (acting) judge who looked at "the photo" thinking that "the photo" was proof of what the party was claiming and this judge (a "registrar" presumably a lawyer in training) in turn found a clever solution and ordered the parties (that is every body involved) to Quote:
Quote:
Printing the photos (.jpg files) by themselves was not good enough since the "printed" photo would have had no identification but "convert" solved the problem since I could "annotate" each photo with its (individual) number and later refer to "photo number one" etc. But as I said, "convert" or mogrify do not work on PDF file without changing the config file and testing the result. One single error in numbering these emails is enough for anyone to claim that what has been done is not trustworthy hence the necessity to have the file name of each email found electronically and "printed" on the "printed" copy of the email. Any other method that involves "entering" any value (by hand) may make the "evidence" "inadmissible" or no evidence at all. The point is not to have something added by any means to the printed copy of the email, it is to have its filename added (or present) in an indisputable way (making sure that human error was not possible). So far, the only solution I have found is to scan each email with a script (which I have done), find its date and time and use that as a filename but the date contains slashes which are not acceptable characters in a filename. As a worst-case solution, I can replace every slash and space with a dash which would make the date and time as the new filename (almost) indisputable since the email would remain in its original state. I still have to investigate fully the other solutions proposed but at first glance, they all involve processing each email individually and entering a value. Repeating myself, processing each email individually and entering any value is not an option and I do not want to spend time finding why "convert" does not work after having found on the internet that it fails on PDF files due to the size limit. My objective is, if one thing does not work "out-of-the-box", find another that does. |
Quote:
Quote:
Quote:
Quote:
Want something else??? Open it in Libreoffice, where you can digitally sign it, and print it with the filename in the header/footer as you were told. Concerned about going to 'court'? Then ask your attorney, because they know far more about what they need/want/can-accept than you do. |
Quote:
However, no one will read them all, so you should select and print only the important ones (if any). |
Quote:
|
All times are GMT -5. The time now is 10:38 PM. |