Where is metadata for PDF files? Can I insert metadata into any PDF file?
I have many files of music; with the program mp3Tag, I had organized all of it. I have the correct metadata as it allows. I am looking for a free software that does the same, but for PDF files.
linux pdf software-rec file-metadata tagging
add a comment |
I have many files of music; with the program mp3Tag, I had organized all of it. I have the correct metadata as it allows. I am looking for a free software that does the same, but for PDF files.
linux pdf software-rec file-metadata tagging
askubuntu.com/questions/27381/…
– user1133275
Dec 16 at 5:00
add a comment |
I have many files of music; with the program mp3Tag, I had organized all of it. I have the correct metadata as it allows. I am looking for a free software that does the same, but for PDF files.
linux pdf software-rec file-metadata tagging
I have many files of music; with the program mp3Tag, I had organized all of it. I have the correct metadata as it allows. I am looking for a free software that does the same, but for PDF files.
linux pdf software-rec file-metadata tagging
linux pdf software-rec file-metadata tagging
edited 2 hours ago
Kurt Pfeifle
40438
40438
asked Dec 15 at 22:57
Jaaziel Aguirre
61
61
askubuntu.com/questions/27381/…
– user1133275
Dec 16 at 5:00
add a comment |
askubuntu.com/questions/27381/…
– user1133275
Dec 16 at 5:00
askubuntu.com/questions/27381/…
– user1133275
Dec 16 at 5:00
askubuntu.com/questions/27381/…
– user1133275
Dec 16 at 5:00
add a comment |
2 Answers
2
active
oldest
votes
Ghostscript can insert or modify document metadata into any PDF.
Caveats: While doing so, Ghostscript will (1) first read in the complete PDF code, (2) second re-process that complete PDF code, (3) write out a completely new PDF file. This process can be wanted (could be for the advantage of the PDF quality, for example by additionally embedding previously missing fonts) or unwanted...
How to do it
Create a text file named mydocinfo.pdfmark and put the following content into it:
[ /Title (Jaziel's Important Document)
/Author (Jaziel Aguirre)
/Subject (Mr. Aguirre's experiments with pdfmark)
/Creator (JA's Metadata Inserter)
/Producer (A 'pdfmark' trick with Ghostscript)
/DOCINFO pdfmark
Note, that the opening
[does NOT require a closing]-- it is closed by the 'pdfmark' keyword.
Now run this Ghostscript command to insert the new metadata into an existing PDF:
gs
-o with-metadata.pdf
-sDEVICE=pdfwrite
existing.pdf
mydocinfo.pdfmark
Check the new metadata:
pdfinfo with-metadata.pdf
Title: Jaziel's Important Document
Subject: Mr. Aguirre's experiments with pdfmark
Author: Jaziel Aguirre
Creator: JA's Metadata Inserter
Producer: A 'pdfmark' trick with Ghostscript
CreationDate: Sat Dec 22 12:20:37 2018 CET
ModDate: Sat Dec 22 12:20:37 2018 CET
Tagged: no
UserProperties: no
Suspects: no
Form: none
JavaScript: no
Pages: 1
Encrypted: no
Page size: 612 x 792 pts (letter)
Page rot: 0
File size: 6587 bytes
Optimized: no
PDF version: 1.7
(Tested with Ghostscript v9.27.)
add a comment |
pdftk is a command line utility allowing you to extract and modify the PDFs metadata using the dump_data and the update_info options.
The following command will extract the metadata of the input.pdf to metadata file:
pdftk input.pdf dump_data output metadata
Modify the content of the metadata file using your text editor, then update the pdf file to a new output.pdf:
pdftk input.pdf update_info metadata output output.pdf
To check the new pdf file (print to stdout):
pdftk output.pdf dump_data
Ha!, I was thinking about adding pdftk's method a little bit later too. Now I can upvote your answer instead... :-)
– Kurt Pfeifle
6 hours ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f489230%2fwhere-is-metadata-for-pdf-files-can-i-insert-metadata-into-any-pdf-file%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Ghostscript can insert or modify document metadata into any PDF.
Caveats: While doing so, Ghostscript will (1) first read in the complete PDF code, (2) second re-process that complete PDF code, (3) write out a completely new PDF file. This process can be wanted (could be for the advantage of the PDF quality, for example by additionally embedding previously missing fonts) or unwanted...
How to do it
Create a text file named mydocinfo.pdfmark and put the following content into it:
[ /Title (Jaziel's Important Document)
/Author (Jaziel Aguirre)
/Subject (Mr. Aguirre's experiments with pdfmark)
/Creator (JA's Metadata Inserter)
/Producer (A 'pdfmark' trick with Ghostscript)
/DOCINFO pdfmark
Note, that the opening
[does NOT require a closing]-- it is closed by the 'pdfmark' keyword.
Now run this Ghostscript command to insert the new metadata into an existing PDF:
gs
-o with-metadata.pdf
-sDEVICE=pdfwrite
existing.pdf
mydocinfo.pdfmark
Check the new metadata:
pdfinfo with-metadata.pdf
Title: Jaziel's Important Document
Subject: Mr. Aguirre's experiments with pdfmark
Author: Jaziel Aguirre
Creator: JA's Metadata Inserter
Producer: A 'pdfmark' trick with Ghostscript
CreationDate: Sat Dec 22 12:20:37 2018 CET
ModDate: Sat Dec 22 12:20:37 2018 CET
Tagged: no
UserProperties: no
Suspects: no
Form: none
JavaScript: no
Pages: 1
Encrypted: no
Page size: 612 x 792 pts (letter)
Page rot: 0
File size: 6587 bytes
Optimized: no
PDF version: 1.7
(Tested with Ghostscript v9.27.)
add a comment |
Ghostscript can insert or modify document metadata into any PDF.
Caveats: While doing so, Ghostscript will (1) first read in the complete PDF code, (2) second re-process that complete PDF code, (3) write out a completely new PDF file. This process can be wanted (could be for the advantage of the PDF quality, for example by additionally embedding previously missing fonts) or unwanted...
How to do it
Create a text file named mydocinfo.pdfmark and put the following content into it:
[ /Title (Jaziel's Important Document)
/Author (Jaziel Aguirre)
/Subject (Mr. Aguirre's experiments with pdfmark)
/Creator (JA's Metadata Inserter)
/Producer (A 'pdfmark' trick with Ghostscript)
/DOCINFO pdfmark
Note, that the opening
[does NOT require a closing]-- it is closed by the 'pdfmark' keyword.
Now run this Ghostscript command to insert the new metadata into an existing PDF:
gs
-o with-metadata.pdf
-sDEVICE=pdfwrite
existing.pdf
mydocinfo.pdfmark
Check the new metadata:
pdfinfo with-metadata.pdf
Title: Jaziel's Important Document
Subject: Mr. Aguirre's experiments with pdfmark
Author: Jaziel Aguirre
Creator: JA's Metadata Inserter
Producer: A 'pdfmark' trick with Ghostscript
CreationDate: Sat Dec 22 12:20:37 2018 CET
ModDate: Sat Dec 22 12:20:37 2018 CET
Tagged: no
UserProperties: no
Suspects: no
Form: none
JavaScript: no
Pages: 1
Encrypted: no
Page size: 612 x 792 pts (letter)
Page rot: 0
File size: 6587 bytes
Optimized: no
PDF version: 1.7
(Tested with Ghostscript v9.27.)
add a comment |
Ghostscript can insert or modify document metadata into any PDF.
Caveats: While doing so, Ghostscript will (1) first read in the complete PDF code, (2) second re-process that complete PDF code, (3) write out a completely new PDF file. This process can be wanted (could be for the advantage of the PDF quality, for example by additionally embedding previously missing fonts) or unwanted...
How to do it
Create a text file named mydocinfo.pdfmark and put the following content into it:
[ /Title (Jaziel's Important Document)
/Author (Jaziel Aguirre)
/Subject (Mr. Aguirre's experiments with pdfmark)
/Creator (JA's Metadata Inserter)
/Producer (A 'pdfmark' trick with Ghostscript)
/DOCINFO pdfmark
Note, that the opening
[does NOT require a closing]-- it is closed by the 'pdfmark' keyword.
Now run this Ghostscript command to insert the new metadata into an existing PDF:
gs
-o with-metadata.pdf
-sDEVICE=pdfwrite
existing.pdf
mydocinfo.pdfmark
Check the new metadata:
pdfinfo with-metadata.pdf
Title: Jaziel's Important Document
Subject: Mr. Aguirre's experiments with pdfmark
Author: Jaziel Aguirre
Creator: JA's Metadata Inserter
Producer: A 'pdfmark' trick with Ghostscript
CreationDate: Sat Dec 22 12:20:37 2018 CET
ModDate: Sat Dec 22 12:20:37 2018 CET
Tagged: no
UserProperties: no
Suspects: no
Form: none
JavaScript: no
Pages: 1
Encrypted: no
Page size: 612 x 792 pts (letter)
Page rot: 0
File size: 6587 bytes
Optimized: no
PDF version: 1.7
(Tested with Ghostscript v9.27.)
Ghostscript can insert or modify document metadata into any PDF.
Caveats: While doing so, Ghostscript will (1) first read in the complete PDF code, (2) second re-process that complete PDF code, (3) write out a completely new PDF file. This process can be wanted (could be for the advantage of the PDF quality, for example by additionally embedding previously missing fonts) or unwanted...
How to do it
Create a text file named mydocinfo.pdfmark and put the following content into it:
[ /Title (Jaziel's Important Document)
/Author (Jaziel Aguirre)
/Subject (Mr. Aguirre's experiments with pdfmark)
/Creator (JA's Metadata Inserter)
/Producer (A 'pdfmark' trick with Ghostscript)
/DOCINFO pdfmark
Note, that the opening
[does NOT require a closing]-- it is closed by the 'pdfmark' keyword.
Now run this Ghostscript command to insert the new metadata into an existing PDF:
gs
-o with-metadata.pdf
-sDEVICE=pdfwrite
existing.pdf
mydocinfo.pdfmark
Check the new metadata:
pdfinfo with-metadata.pdf
Title: Jaziel's Important Document
Subject: Mr. Aguirre's experiments with pdfmark
Author: Jaziel Aguirre
Creator: JA's Metadata Inserter
Producer: A 'pdfmark' trick with Ghostscript
CreationDate: Sat Dec 22 12:20:37 2018 CET
ModDate: Sat Dec 22 12:20:37 2018 CET
Tagged: no
UserProperties: no
Suspects: no
Form: none
JavaScript: no
Pages: 1
Encrypted: no
Page size: 612 x 792 pts (letter)
Page rot: 0
File size: 6587 bytes
Optimized: no
PDF version: 1.7
(Tested with Ghostscript v9.27.)
answered 15 hours ago
Kurt Pfeifle
40438
40438
add a comment |
add a comment |
pdftk is a command line utility allowing you to extract and modify the PDFs metadata using the dump_data and the update_info options.
The following command will extract the metadata of the input.pdf to metadata file:
pdftk input.pdf dump_data output metadata
Modify the content of the metadata file using your text editor, then update the pdf file to a new output.pdf:
pdftk input.pdf update_info metadata output output.pdf
To check the new pdf file (print to stdout):
pdftk output.pdf dump_data
Ha!, I was thinking about adding pdftk's method a little bit later too. Now I can upvote your answer instead... :-)
– Kurt Pfeifle
6 hours ago
add a comment |
pdftk is a command line utility allowing you to extract and modify the PDFs metadata using the dump_data and the update_info options.
The following command will extract the metadata of the input.pdf to metadata file:
pdftk input.pdf dump_data output metadata
Modify the content of the metadata file using your text editor, then update the pdf file to a new output.pdf:
pdftk input.pdf update_info metadata output output.pdf
To check the new pdf file (print to stdout):
pdftk output.pdf dump_data
Ha!, I was thinking about adding pdftk's method a little bit later too. Now I can upvote your answer instead... :-)
– Kurt Pfeifle
6 hours ago
add a comment |
pdftk is a command line utility allowing you to extract and modify the PDFs metadata using the dump_data and the update_info options.
The following command will extract the metadata of the input.pdf to metadata file:
pdftk input.pdf dump_data output metadata
Modify the content of the metadata file using your text editor, then update the pdf file to a new output.pdf:
pdftk input.pdf update_info metadata output output.pdf
To check the new pdf file (print to stdout):
pdftk output.pdf dump_data
pdftk is a command line utility allowing you to extract and modify the PDFs metadata using the dump_data and the update_info options.
The following command will extract the metadata of the input.pdf to metadata file:
pdftk input.pdf dump_data output metadata
Modify the content of the metadata file using your text editor, then update the pdf file to a new output.pdf:
pdftk input.pdf update_info metadata output output.pdf
To check the new pdf file (print to stdout):
pdftk output.pdf dump_data
answered 9 hours ago
GAD3R
25.2k1749106
25.2k1749106
Ha!, I was thinking about adding pdftk's method a little bit later too. Now I can upvote your answer instead... :-)
– Kurt Pfeifle
6 hours ago
add a comment |
Ha!, I was thinking about adding pdftk's method a little bit later too. Now I can upvote your answer instead... :-)
– Kurt Pfeifle
6 hours ago
Ha!, I was thinking about adding pdftk's method a little bit later too. Now I can upvote your answer instead... :-)
– Kurt Pfeifle
6 hours ago
Ha!, I was thinking about adding pdftk's method a little bit later too. Now I can upvote your answer instead... :-)
– Kurt Pfeifle
6 hours ago
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f489230%2fwhere-is-metadata-for-pdf-files-can-i-insert-metadata-into-any-pdf-file%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
askubuntu.com/questions/27381/…
– user1133275
Dec 16 at 5:00