Where is metadata for PDF files? Can I insert metadata into any PDF file?












0














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.










share|improve this question
























  • askubuntu.com/questions/27381/…
    – user1133275
    Dec 16 at 5:00
















0














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.










share|improve this question
























  • askubuntu.com/questions/27381/…
    – user1133275
    Dec 16 at 5:00














0












0








0


1





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.










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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


















  • 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










2 Answers
2






active

oldest

votes


















1














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





  1. 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.




  2. 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



  3. 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.)






share|improve this answer





























    1














    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





    share|improve this answer





















    • 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











    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    1














    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





    1. 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.




    2. 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



    3. 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.)






    share|improve this answer


























      1














      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





      1. 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.




      2. 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



      3. 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.)






      share|improve this answer
























        1












        1








        1






        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





        1. 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.




        2. 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



        3. 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.)






        share|improve this answer












        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





        1. 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.




        2. 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



        3. 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.)







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 15 hours ago









        Kurt Pfeifle

        40438




        40438

























            1














            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





            share|improve this answer





















            • 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
















            1














            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





            share|improve this answer





















            • 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














            1












            1








            1






            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





            share|improve this answer












            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






            share|improve this answer












            share|improve this answer



            share|improve this answer










            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


















            • 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


















            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Entries order in /etc/network/interfaces

            新発田市

            Grub takes very long (several minutes) to open Menu (in Multi-Boot-System)