Converting PDF to PDF/A?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
7
down vote

favorite
3












Given a PDF of random origin, how do I, on Linux:



  • confirm whether it is in PDF/A format already?

  • if it is not in PDF/A format, convert it to PDF/A with a minimum loss of fidelity?

I am aware that the conversion may cause loss of exotic elements of the document, but let's assume that the ability to open the document at all in a relatively far future is more important than such spiffy features (which might not be available/readable at such a time anyway). I would rather be able to visually confirm the accuracy of the conversion when I can trivially view the documents side by side than risk not being able to open the original file.










share|improve this question

























    up vote
    7
    down vote

    favorite
    3












    Given a PDF of random origin, how do I, on Linux:



    • confirm whether it is in PDF/A format already?

    • if it is not in PDF/A format, convert it to PDF/A with a minimum loss of fidelity?

    I am aware that the conversion may cause loss of exotic elements of the document, but let's assume that the ability to open the document at all in a relatively far future is more important than such spiffy features (which might not be available/readable at such a time anyway). I would rather be able to visually confirm the accuracy of the conversion when I can trivially view the documents side by side than risk not being able to open the original file.










    share|improve this question























      up vote
      7
      down vote

      favorite
      3









      up vote
      7
      down vote

      favorite
      3






      3





      Given a PDF of random origin, how do I, on Linux:



      • confirm whether it is in PDF/A format already?

      • if it is not in PDF/A format, convert it to PDF/A with a minimum loss of fidelity?

      I am aware that the conversion may cause loss of exotic elements of the document, but let's assume that the ability to open the document at all in a relatively far future is more important than such spiffy features (which might not be available/readable at such a time anyway). I would rather be able to visually confirm the accuracy of the conversion when I can trivially view the documents side by side than risk not being able to open the original file.










      share|improve this question













      Given a PDF of random origin, how do I, on Linux:



      • confirm whether it is in PDF/A format already?

      • if it is not in PDF/A format, convert it to PDF/A with a minimum loss of fidelity?

      I am aware that the conversion may cause loss of exotic elements of the document, but let's assume that the ability to open the document at all in a relatively far future is more important than such spiffy features (which might not be available/readable at such a time anyway). I would rather be able to visually confirm the accuracy of the conversion when I can trivially view the documents side by side than risk not being able to open the original file.







      pdf






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jun 15 '13 at 15:20









      Michael Kjörling

      16.2k84899




      16.2k84899




















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          6
          down vote













          Identification



          I found this tool which looks to be what you can use to identify PDF/A files. It's called DROID (Digital Record and Object Identification). It's Java based and can be run from a GUI or the command-line.



          excerpt




          DROID is a software tool developed by The National Archives to perform
          automated batch identification of file formats. Developed by its
          Digital Preservation Department as part of its broader digital
          preservation activities, DROID is designed to meet the fundamental
          requirement of any digital repository to be able to identify the
          precise format of all stored digital objects, and to link that
          identification to a central registry of technical information about
          that format and its dependencies.




          Given it's sponsored by the National Archives I would assume it's the right tool for doing this, given the intended purpose of the PDF/A format. Also the project is open source and the code is available on Github as well as packaged in binary form from the National Archives website.



          Validation & Conversion



          If you're looking for a tool to perform validation & conversion I believe PDFBox can do this. PDFBox lists PDF/A validation right on the front page of their website. It's another Java application 8-).



          excerpt from website




          PDF/A Validation

          Validate PDFs against the PDF/A ISO standard.




          Under the command line tools section on the left of their main page the show the following usage for the tool:



          $ java -jar pdfbox-app-x.y.z.jar org.apache.pdfbox.ConvertColorspace [OPTIONS] <inputfile> <outputfile>


          veraPDF is another tool capable of validating PDF/A; it is part of the Open Preservation Foundation’s reference tool set. It’s also a Java application.



          Conversion



          For just doing conversion I found this method from a blog post titled: Free way to convert an existing PDF to PDF/A, that uses the following tools:



          • Ghostscript 8.64 Only.

          • PDFBox 0.7.3

          • pdfmarks ( file to supply additional meta data)

          • PDFA_def.ps

          • USWebCoatedSWOP.icc

          With the above in place you use the following command:



          $ gs -sDEVICE=pdfwrite -q -dNOPAUSE -dBATCH -dNOSAFER 
          -dPDFA -dUseCIEColor -sProcessColorModel=DeviceCMYK
          -sOutputFile=Out_PDFA.pdf PDFA_def.ps pdfmarks IN_PDF.pdf


          It isn't without it's warts. The article discusses one of them, fixing the print flags on hyperlinks being one of them. The article provides a Java application that you can use to fix these:



          $ java FixPrintFlag Out_PDFA.pdf New_verifiablePDFA.pdf


          It's not pretty but appears to be workable. See the article for more details.



          References



          • PDF to PDF-A conversion - wiki.opf-labs.org





          share|improve this answer






















          • I'll have to give this a try - it looks awfully promising. With a little fiddling it might even be possible to integrate this into the CUPS-PDF printer; there are settings in /etc/cups/cups-pdf.conf that look promising for that purpose. Thanks for taking the time! Not really up to testing it right now but I'll get back to this (hopefully tomorrow).
            – Michael Kjörling
            Jun 15 '13 at 20:34











          • @MichaelKjörling - thanks for the question. I'd never heard of the PDF/A format before and we have a need for this exact thing at work. So you helped me look like a genius for knowing about this stuff now 8-).
            – slm♦
            Jun 15 '13 at 21:27

















          up vote
          1
          down vote













          For file identification, the command file is often helpful. It'll look your file for magic numbers, file identifiers, encoding information, etc. to give any helpful information it can.



          In the particular case of PDF files, the utilitary pdfinfo is specially useful. In my case, a Gentoo distribution, it's packaged with poppler, a PDF rendering library.






          share|improve this answer




















          • pdfinfo -meta and looking at xmpmeta/RDF/Description/conformance seems to say whether the PDF is PDF/A (that node is A) or not (the node doesn't exist or has some other value). It's a start!
            – Michael Kjörling
            Jun 15 '13 at 20:37


















          up vote
          0
          down vote













          Here is a bash command line script doing just that:



          #!/bin/bash



          pdf_input=$1



          ps_output=$pdf_input%.*.ps



          pdfa_output=$pdf_input%.*_a.pdf



          pdftops $input $ps_output



          gs -dPDFA -dBATCH -dNOPAUSE -dNOOUTERSAVE -dUseCIEColor -sProcessColorModel=DeviceCMYK -sDEVICE=pdfwrite -sPDFACompatibilityPolicy=1 -sOutputFile=$pdfa_output $ps_output






          share|improve this answer




















            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',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            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%2f79516%2fconverting-pdf-to-pdf-a%23new-answer', 'question_page');

            );

            Post as a guest






























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            6
            down vote













            Identification



            I found this tool which looks to be what you can use to identify PDF/A files. It's called DROID (Digital Record and Object Identification). It's Java based and can be run from a GUI or the command-line.



            excerpt




            DROID is a software tool developed by The National Archives to perform
            automated batch identification of file formats. Developed by its
            Digital Preservation Department as part of its broader digital
            preservation activities, DROID is designed to meet the fundamental
            requirement of any digital repository to be able to identify the
            precise format of all stored digital objects, and to link that
            identification to a central registry of technical information about
            that format and its dependencies.




            Given it's sponsored by the National Archives I would assume it's the right tool for doing this, given the intended purpose of the PDF/A format. Also the project is open source and the code is available on Github as well as packaged in binary form from the National Archives website.



            Validation & Conversion



            If you're looking for a tool to perform validation & conversion I believe PDFBox can do this. PDFBox lists PDF/A validation right on the front page of their website. It's another Java application 8-).



            excerpt from website




            PDF/A Validation

            Validate PDFs against the PDF/A ISO standard.




            Under the command line tools section on the left of their main page the show the following usage for the tool:



            $ java -jar pdfbox-app-x.y.z.jar org.apache.pdfbox.ConvertColorspace [OPTIONS] <inputfile> <outputfile>


            veraPDF is another tool capable of validating PDF/A; it is part of the Open Preservation Foundation’s reference tool set. It’s also a Java application.



            Conversion



            For just doing conversion I found this method from a blog post titled: Free way to convert an existing PDF to PDF/A, that uses the following tools:



            • Ghostscript 8.64 Only.

            • PDFBox 0.7.3

            • pdfmarks ( file to supply additional meta data)

            • PDFA_def.ps

            • USWebCoatedSWOP.icc

            With the above in place you use the following command:



            $ gs -sDEVICE=pdfwrite -q -dNOPAUSE -dBATCH -dNOSAFER 
            -dPDFA -dUseCIEColor -sProcessColorModel=DeviceCMYK
            -sOutputFile=Out_PDFA.pdf PDFA_def.ps pdfmarks IN_PDF.pdf


            It isn't without it's warts. The article discusses one of them, fixing the print flags on hyperlinks being one of them. The article provides a Java application that you can use to fix these:



            $ java FixPrintFlag Out_PDFA.pdf New_verifiablePDFA.pdf


            It's not pretty but appears to be workable. See the article for more details.



            References



            • PDF to PDF-A conversion - wiki.opf-labs.org





            share|improve this answer






















            • I'll have to give this a try - it looks awfully promising. With a little fiddling it might even be possible to integrate this into the CUPS-PDF printer; there are settings in /etc/cups/cups-pdf.conf that look promising for that purpose. Thanks for taking the time! Not really up to testing it right now but I'll get back to this (hopefully tomorrow).
              – Michael Kjörling
              Jun 15 '13 at 20:34











            • @MichaelKjörling - thanks for the question. I'd never heard of the PDF/A format before and we have a need for this exact thing at work. So you helped me look like a genius for knowing about this stuff now 8-).
              – slm♦
              Jun 15 '13 at 21:27














            up vote
            6
            down vote













            Identification



            I found this tool which looks to be what you can use to identify PDF/A files. It's called DROID (Digital Record and Object Identification). It's Java based and can be run from a GUI or the command-line.



            excerpt




            DROID is a software tool developed by The National Archives to perform
            automated batch identification of file formats. Developed by its
            Digital Preservation Department as part of its broader digital
            preservation activities, DROID is designed to meet the fundamental
            requirement of any digital repository to be able to identify the
            precise format of all stored digital objects, and to link that
            identification to a central registry of technical information about
            that format and its dependencies.




            Given it's sponsored by the National Archives I would assume it's the right tool for doing this, given the intended purpose of the PDF/A format. Also the project is open source and the code is available on Github as well as packaged in binary form from the National Archives website.



            Validation & Conversion



            If you're looking for a tool to perform validation & conversion I believe PDFBox can do this. PDFBox lists PDF/A validation right on the front page of their website. It's another Java application 8-).



            excerpt from website




            PDF/A Validation

            Validate PDFs against the PDF/A ISO standard.




            Under the command line tools section on the left of their main page the show the following usage for the tool:



            $ java -jar pdfbox-app-x.y.z.jar org.apache.pdfbox.ConvertColorspace [OPTIONS] <inputfile> <outputfile>


            veraPDF is another tool capable of validating PDF/A; it is part of the Open Preservation Foundation’s reference tool set. It’s also a Java application.



            Conversion



            For just doing conversion I found this method from a blog post titled: Free way to convert an existing PDF to PDF/A, that uses the following tools:



            • Ghostscript 8.64 Only.

            • PDFBox 0.7.3

            • pdfmarks ( file to supply additional meta data)

            • PDFA_def.ps

            • USWebCoatedSWOP.icc

            With the above in place you use the following command:



            $ gs -sDEVICE=pdfwrite -q -dNOPAUSE -dBATCH -dNOSAFER 
            -dPDFA -dUseCIEColor -sProcessColorModel=DeviceCMYK
            -sOutputFile=Out_PDFA.pdf PDFA_def.ps pdfmarks IN_PDF.pdf


            It isn't without it's warts. The article discusses one of them, fixing the print flags on hyperlinks being one of them. The article provides a Java application that you can use to fix these:



            $ java FixPrintFlag Out_PDFA.pdf New_verifiablePDFA.pdf


            It's not pretty but appears to be workable. See the article for more details.



            References



            • PDF to PDF-A conversion - wiki.opf-labs.org





            share|improve this answer






















            • I'll have to give this a try - it looks awfully promising. With a little fiddling it might even be possible to integrate this into the CUPS-PDF printer; there are settings in /etc/cups/cups-pdf.conf that look promising for that purpose. Thanks for taking the time! Not really up to testing it right now but I'll get back to this (hopefully tomorrow).
              – Michael Kjörling
              Jun 15 '13 at 20:34











            • @MichaelKjörling - thanks for the question. I'd never heard of the PDF/A format before and we have a need for this exact thing at work. So you helped me look like a genius for knowing about this stuff now 8-).
              – slm♦
              Jun 15 '13 at 21:27












            up vote
            6
            down vote










            up vote
            6
            down vote









            Identification



            I found this tool which looks to be what you can use to identify PDF/A files. It's called DROID (Digital Record and Object Identification). It's Java based and can be run from a GUI or the command-line.



            excerpt




            DROID is a software tool developed by The National Archives to perform
            automated batch identification of file formats. Developed by its
            Digital Preservation Department as part of its broader digital
            preservation activities, DROID is designed to meet the fundamental
            requirement of any digital repository to be able to identify the
            precise format of all stored digital objects, and to link that
            identification to a central registry of technical information about
            that format and its dependencies.




            Given it's sponsored by the National Archives I would assume it's the right tool for doing this, given the intended purpose of the PDF/A format. Also the project is open source and the code is available on Github as well as packaged in binary form from the National Archives website.



            Validation & Conversion



            If you're looking for a tool to perform validation & conversion I believe PDFBox can do this. PDFBox lists PDF/A validation right on the front page of their website. It's another Java application 8-).



            excerpt from website




            PDF/A Validation

            Validate PDFs against the PDF/A ISO standard.




            Under the command line tools section on the left of their main page the show the following usage for the tool:



            $ java -jar pdfbox-app-x.y.z.jar org.apache.pdfbox.ConvertColorspace [OPTIONS] <inputfile> <outputfile>


            veraPDF is another tool capable of validating PDF/A; it is part of the Open Preservation Foundation’s reference tool set. It’s also a Java application.



            Conversion



            For just doing conversion I found this method from a blog post titled: Free way to convert an existing PDF to PDF/A, that uses the following tools:



            • Ghostscript 8.64 Only.

            • PDFBox 0.7.3

            • pdfmarks ( file to supply additional meta data)

            • PDFA_def.ps

            • USWebCoatedSWOP.icc

            With the above in place you use the following command:



            $ gs -sDEVICE=pdfwrite -q -dNOPAUSE -dBATCH -dNOSAFER 
            -dPDFA -dUseCIEColor -sProcessColorModel=DeviceCMYK
            -sOutputFile=Out_PDFA.pdf PDFA_def.ps pdfmarks IN_PDF.pdf


            It isn't without it's warts. The article discusses one of them, fixing the print flags on hyperlinks being one of them. The article provides a Java application that you can use to fix these:



            $ java FixPrintFlag Out_PDFA.pdf New_verifiablePDFA.pdf


            It's not pretty but appears to be workable. See the article for more details.



            References



            • PDF to PDF-A conversion - wiki.opf-labs.org





            share|improve this answer














            Identification



            I found this tool which looks to be what you can use to identify PDF/A files. It's called DROID (Digital Record and Object Identification). It's Java based and can be run from a GUI or the command-line.



            excerpt




            DROID is a software tool developed by The National Archives to perform
            automated batch identification of file formats. Developed by its
            Digital Preservation Department as part of its broader digital
            preservation activities, DROID is designed to meet the fundamental
            requirement of any digital repository to be able to identify the
            precise format of all stored digital objects, and to link that
            identification to a central registry of technical information about
            that format and its dependencies.




            Given it's sponsored by the National Archives I would assume it's the right tool for doing this, given the intended purpose of the PDF/A format. Also the project is open source and the code is available on Github as well as packaged in binary form from the National Archives website.



            Validation & Conversion



            If you're looking for a tool to perform validation & conversion I believe PDFBox can do this. PDFBox lists PDF/A validation right on the front page of their website. It's another Java application 8-).



            excerpt from website




            PDF/A Validation

            Validate PDFs against the PDF/A ISO standard.




            Under the command line tools section on the left of their main page the show the following usage for the tool:



            $ java -jar pdfbox-app-x.y.z.jar org.apache.pdfbox.ConvertColorspace [OPTIONS] <inputfile> <outputfile>


            veraPDF is another tool capable of validating PDF/A; it is part of the Open Preservation Foundation’s reference tool set. It’s also a Java application.



            Conversion



            For just doing conversion I found this method from a blog post titled: Free way to convert an existing PDF to PDF/A, that uses the following tools:



            • Ghostscript 8.64 Only.

            • PDFBox 0.7.3

            • pdfmarks ( file to supply additional meta data)

            • PDFA_def.ps

            • USWebCoatedSWOP.icc

            With the above in place you use the following command:



            $ gs -sDEVICE=pdfwrite -q -dNOPAUSE -dBATCH -dNOSAFER 
            -dPDFA -dUseCIEColor -sProcessColorModel=DeviceCMYK
            -sOutputFile=Out_PDFA.pdf PDFA_def.ps pdfmarks IN_PDF.pdf


            It isn't without it's warts. The article discusses one of them, fixing the print flags on hyperlinks being one of them. The article provides a Java application that you can use to fix these:



            $ java FixPrintFlag Out_PDFA.pdf New_verifiablePDFA.pdf


            It's not pretty but appears to be workable. See the article for more details.



            References



            • PDF to PDF-A conversion - wiki.opf-labs.org






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jan 23 at 12:49









            Stephen Kitt

            150k23332400




            150k23332400










            answered Jun 15 '13 at 16:09









            slm♦

            241k66500668




            241k66500668











            • I'll have to give this a try - it looks awfully promising. With a little fiddling it might even be possible to integrate this into the CUPS-PDF printer; there are settings in /etc/cups/cups-pdf.conf that look promising for that purpose. Thanks for taking the time! Not really up to testing it right now but I'll get back to this (hopefully tomorrow).
              – Michael Kjörling
              Jun 15 '13 at 20:34











            • @MichaelKjörling - thanks for the question. I'd never heard of the PDF/A format before and we have a need for this exact thing at work. So you helped me look like a genius for knowing about this stuff now 8-).
              – slm♦
              Jun 15 '13 at 21:27
















            • I'll have to give this a try - it looks awfully promising. With a little fiddling it might even be possible to integrate this into the CUPS-PDF printer; there are settings in /etc/cups/cups-pdf.conf that look promising for that purpose. Thanks for taking the time! Not really up to testing it right now but I'll get back to this (hopefully tomorrow).
              – Michael Kjörling
              Jun 15 '13 at 20:34











            • @MichaelKjörling - thanks for the question. I'd never heard of the PDF/A format before and we have a need for this exact thing at work. So you helped me look like a genius for knowing about this stuff now 8-).
              – slm♦
              Jun 15 '13 at 21:27















            I'll have to give this a try - it looks awfully promising. With a little fiddling it might even be possible to integrate this into the CUPS-PDF printer; there are settings in /etc/cups/cups-pdf.conf that look promising for that purpose. Thanks for taking the time! Not really up to testing it right now but I'll get back to this (hopefully tomorrow).
            – Michael Kjörling
            Jun 15 '13 at 20:34





            I'll have to give this a try - it looks awfully promising. With a little fiddling it might even be possible to integrate this into the CUPS-PDF printer; there are settings in /etc/cups/cups-pdf.conf that look promising for that purpose. Thanks for taking the time! Not really up to testing it right now but I'll get back to this (hopefully tomorrow).
            – Michael Kjörling
            Jun 15 '13 at 20:34













            @MichaelKjörling - thanks for the question. I'd never heard of the PDF/A format before and we have a need for this exact thing at work. So you helped me look like a genius for knowing about this stuff now 8-).
            – slm♦
            Jun 15 '13 at 21:27




            @MichaelKjörling - thanks for the question. I'd never heard of the PDF/A format before and we have a need for this exact thing at work. So you helped me look like a genius for knowing about this stuff now 8-).
            – slm♦
            Jun 15 '13 at 21:27












            up vote
            1
            down vote













            For file identification, the command file is often helpful. It'll look your file for magic numbers, file identifiers, encoding information, etc. to give any helpful information it can.



            In the particular case of PDF files, the utilitary pdfinfo is specially useful. In my case, a Gentoo distribution, it's packaged with poppler, a PDF rendering library.






            share|improve this answer




















            • pdfinfo -meta and looking at xmpmeta/RDF/Description/conformance seems to say whether the PDF is PDF/A (that node is A) or not (the node doesn't exist or has some other value). It's a start!
              – Michael Kjörling
              Jun 15 '13 at 20:37















            up vote
            1
            down vote













            For file identification, the command file is often helpful. It'll look your file for magic numbers, file identifiers, encoding information, etc. to give any helpful information it can.



            In the particular case of PDF files, the utilitary pdfinfo is specially useful. In my case, a Gentoo distribution, it's packaged with poppler, a PDF rendering library.






            share|improve this answer




















            • pdfinfo -meta and looking at xmpmeta/RDF/Description/conformance seems to say whether the PDF is PDF/A (that node is A) or not (the node doesn't exist or has some other value). It's a start!
              – Michael Kjörling
              Jun 15 '13 at 20:37













            up vote
            1
            down vote










            up vote
            1
            down vote









            For file identification, the command file is often helpful. It'll look your file for magic numbers, file identifiers, encoding information, etc. to give any helpful information it can.



            In the particular case of PDF files, the utilitary pdfinfo is specially useful. In my case, a Gentoo distribution, it's packaged with poppler, a PDF rendering library.






            share|improve this answer












            For file identification, the command file is often helpful. It'll look your file for magic numbers, file identifiers, encoding information, etc. to give any helpful information it can.



            In the particular case of PDF files, the utilitary pdfinfo is specially useful. In my case, a Gentoo distribution, it's packaged with poppler, a PDF rendering library.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jun 15 '13 at 18:33









            lgeorget

            8,68622449




            8,68622449











            • pdfinfo -meta and looking at xmpmeta/RDF/Description/conformance seems to say whether the PDF is PDF/A (that node is A) or not (the node doesn't exist or has some other value). It's a start!
              – Michael Kjörling
              Jun 15 '13 at 20:37

















            • pdfinfo -meta and looking at xmpmeta/RDF/Description/conformance seems to say whether the PDF is PDF/A (that node is A) or not (the node doesn't exist or has some other value). It's a start!
              – Michael Kjörling
              Jun 15 '13 at 20:37
















            pdfinfo -meta and looking at xmpmeta/RDF/Description/conformance seems to say whether the PDF is PDF/A (that node is A) or not (the node doesn't exist or has some other value). It's a start!
            – Michael Kjörling
            Jun 15 '13 at 20:37





            pdfinfo -meta and looking at xmpmeta/RDF/Description/conformance seems to say whether the PDF is PDF/A (that node is A) or not (the node doesn't exist or has some other value). It's a start!
            – Michael Kjörling
            Jun 15 '13 at 20:37











            up vote
            0
            down vote













            Here is a bash command line script doing just that:



            #!/bin/bash



            pdf_input=$1



            ps_output=$pdf_input%.*.ps



            pdfa_output=$pdf_input%.*_a.pdf



            pdftops $input $ps_output



            gs -dPDFA -dBATCH -dNOPAUSE -dNOOUTERSAVE -dUseCIEColor -sProcessColorModel=DeviceCMYK -sDEVICE=pdfwrite -sPDFACompatibilityPolicy=1 -sOutputFile=$pdfa_output $ps_output






            share|improve this answer
























              up vote
              0
              down vote













              Here is a bash command line script doing just that:



              #!/bin/bash



              pdf_input=$1



              ps_output=$pdf_input%.*.ps



              pdfa_output=$pdf_input%.*_a.pdf



              pdftops $input $ps_output



              gs -dPDFA -dBATCH -dNOPAUSE -dNOOUTERSAVE -dUseCIEColor -sProcessColorModel=DeviceCMYK -sDEVICE=pdfwrite -sPDFACompatibilityPolicy=1 -sOutputFile=$pdfa_output $ps_output






              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                Here is a bash command line script doing just that:



                #!/bin/bash



                pdf_input=$1



                ps_output=$pdf_input%.*.ps



                pdfa_output=$pdf_input%.*_a.pdf



                pdftops $input $ps_output



                gs -dPDFA -dBATCH -dNOPAUSE -dNOOUTERSAVE -dUseCIEColor -sProcessColorModel=DeviceCMYK -sDEVICE=pdfwrite -sPDFACompatibilityPolicy=1 -sOutputFile=$pdfa_output $ps_output






                share|improve this answer












                Here is a bash command line script doing just that:



                #!/bin/bash



                pdf_input=$1



                ps_output=$pdf_input%.*.ps



                pdfa_output=$pdf_input%.*_a.pdf



                pdftops $input $ps_output



                gs -dPDFA -dBATCH -dNOPAUSE -dNOOUTERSAVE -dUseCIEColor -sProcessColorModel=DeviceCMYK -sDEVICE=pdfwrite -sPDFACompatibilityPolicy=1 -sOutputFile=$pdfa_output $ps_output







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 19 mins ago









                daruma

                393




                393



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f79516%2fconverting-pdf-to-pdf-a%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay