How to set security options for a PDF using pdflatexProtecting .pdf file created from latexUsing LaTeX, can...

Are babies of evil humanoid species inherently evil?

Good allowance savings plan?

Should I tell my boss the work he did was worthless

What does a stand alone "T" index value do?

Fourth person (in Slavey language)

Making a sword in the stone, in a medieval world without magic

Is there any way to damage Intellect Devourer(s) when already within a creature's skull?

Good for you! in Russian

Is having access to past exams cheating and, if yes, could it be proven just by a good grade?

How does airport security verify that you can carry a battery bank over 100 Wh?

Is there an equal sign with wider gap?

Make a transparent 448*448 image

How do I deal with a powergamer in a game full of beginners in a school club?

Force user to remove USB token

Who deserves to be first and second author? PhD student who collected data, research associate who wrote the paper or supervisor?

A question on the ultrafilter number

Can you reject a postdoc offer after the PI has paid a large sum for flights/accommodation for your visit?

Algorithm to convert a fixed-length string to the smallest possible collision-free representation?

Does "variables should live in the smallest scope as possible" include the case "variables should not exist if possible"?

Why is Beresheet doing a only a one-way trip?

Offered promotion but I'm leaving. Should I tell?

Time travel short story where dinosaur doesn't taste like chicken

BitNot does not flip bits in the way I expected

Figure-8 landings on perpendicular runways



How to set security options for a PDF using pdflatex


Protecting .pdf file created from latexUsing LaTeX, can we prevent others from editing pdf file properties?Secure the pdf produced by LatexHow to protect a PDF generated via LaTeXHow to enable security in LaTeX using pdflatex 1.40.14Manage document permissionsHow to mark and secure a PDF document for distribution?Digital signatureIt is possible to lock up pdf?How to annotate PDF files generated by pdflatex?Image quality using PDFLaTeXSecure the pdf produced by Latexpdflatex producing dvi output instead of pdfResolution (dpi) for includeimage pictures and pdflatexUsing LaTeX, can we prevent others from editing pdf file properties?Protecting .pdf file created from latexhow to protect pdf geneated from pdflatex and xelatexPDF file including a black and white print versionHow to set TrimBox in PDF by using PDFLaTeX













41















My questions is very simple.
How can I set security setting for a PDF file created with PDFLatex?



I should set some password or print permissions, etc.










share|improve this question















migrated from stackoverflow.com Oct 18 '11 at 8:59


This question came from our site for professional and enthusiast programmers.























    41















    My questions is very simple.
    How can I set security setting for a PDF file created with PDFLatex?



    I should set some password or print permissions, etc.










    share|improve this question















    migrated from stackoverflow.com Oct 18 '11 at 8:59


    This question came from our site for professional and enthusiast programmers.





















      41












      41








      41


      15






      My questions is very simple.
      How can I set security setting for a PDF file created with PDFLatex?



      I should set some password or print permissions, etc.










      share|improve this question
















      My questions is very simple.
      How can I set security setting for a PDF file created with PDFLatex?



      I should set some password or print permissions, etc.







      pdf pdftex drm






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 20 '14 at 13:52









      Martin Schröder

      12.9k640125




      12.9k640125










      asked Oct 13 '11 at 5:34









      IsraelIsrael

      3781510




      3781510




      migrated from stackoverflow.com Oct 18 '11 at 8:59


      This question came from our site for professional and enthusiast programmers.









      migrated from stackoverflow.com Oct 18 '11 at 8:59


      This question came from our site for professional and enthusiast programmers.
























          2 Answers
          2






          active

          oldest

          votes


















          40














          This answer, taken partially verbatim from Digital signature on TeX.SX:



          Using the PDF Toolkit you can specify a separate owner and user password. Owner passwords are required when changing document properties, while user passwords may be required for performing certain actions, like printing. However, only specifying an owner password and allowing printing by default, would allow users of the document to view/read/print without authentication. You would need the following command line execution:



          pdftk input.pdf output output.pdf owner_pw foo allow printing


          The above commands takes as input input.pdf, sets the owner password to foo and would allow printing by any user. Modification of document settings require the owner password. See the documentation/man page and examples for more information.






          share|improve this answer





















          • 1





            Thank you very much for reply. I was useful for me, I am now using pdftk like my tool. But let me confirm one doubt... Is it no possible to add security with PdfLatex?

            – NeoRiddle
            Oct 14 '11 at 4:49






          • 4





            As far as I know, this is not possible directly. You need external software to encrypt the file.

            – Werner
            Oct 14 '11 at 4:54



















          0














          As pdftk is no longer easily available for certain Linux distributions (or no longer easy to keep track of what is going on), another option is qpdf. Password protection is possible. The basic syntax is:





          qpdf infile.pdf --encrypt <userpwd> <ownerpwd> <key length> [ restrictions ] outfile.pdf


          Where,




          • one or both of <userpassword> and <ownerpassword> may be empty strings


          • key length may be 40, 128, or 256 and the higher the value the more restrictions one can impose on the use of the pdf.


          For example,



            qpdf infile.pdf --encrypt usr own 128 --print=none -- outfile.pdf


          should prevent unauthorized printing.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "85"
            };
            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%2ftex.stackexchange.com%2fquestions%2f31901%2fhow-to-set-security-options-for-a-pdf-using-pdflatex%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









            40














            This answer, taken partially verbatim from Digital signature on TeX.SX:



            Using the PDF Toolkit you can specify a separate owner and user password. Owner passwords are required when changing document properties, while user passwords may be required for performing certain actions, like printing. However, only specifying an owner password and allowing printing by default, would allow users of the document to view/read/print without authentication. You would need the following command line execution:



            pdftk input.pdf output output.pdf owner_pw foo allow printing


            The above commands takes as input input.pdf, sets the owner password to foo and would allow printing by any user. Modification of document settings require the owner password. See the documentation/man page and examples for more information.






            share|improve this answer





















            • 1





              Thank you very much for reply. I was useful for me, I am now using pdftk like my tool. But let me confirm one doubt... Is it no possible to add security with PdfLatex?

              – NeoRiddle
              Oct 14 '11 at 4:49






            • 4





              As far as I know, this is not possible directly. You need external software to encrypt the file.

              – Werner
              Oct 14 '11 at 4:54
















            40














            This answer, taken partially verbatim from Digital signature on TeX.SX:



            Using the PDF Toolkit you can specify a separate owner and user password. Owner passwords are required when changing document properties, while user passwords may be required for performing certain actions, like printing. However, only specifying an owner password and allowing printing by default, would allow users of the document to view/read/print without authentication. You would need the following command line execution:



            pdftk input.pdf output output.pdf owner_pw foo allow printing


            The above commands takes as input input.pdf, sets the owner password to foo and would allow printing by any user. Modification of document settings require the owner password. See the documentation/man page and examples for more information.






            share|improve this answer





















            • 1





              Thank you very much for reply. I was useful for me, I am now using pdftk like my tool. But let me confirm one doubt... Is it no possible to add security with PdfLatex?

              – NeoRiddle
              Oct 14 '11 at 4:49






            • 4





              As far as I know, this is not possible directly. You need external software to encrypt the file.

              – Werner
              Oct 14 '11 at 4:54














            40












            40








            40







            This answer, taken partially verbatim from Digital signature on TeX.SX:



            Using the PDF Toolkit you can specify a separate owner and user password. Owner passwords are required when changing document properties, while user passwords may be required for performing certain actions, like printing. However, only specifying an owner password and allowing printing by default, would allow users of the document to view/read/print without authentication. You would need the following command line execution:



            pdftk input.pdf output output.pdf owner_pw foo allow printing


            The above commands takes as input input.pdf, sets the owner password to foo and would allow printing by any user. Modification of document settings require the owner password. See the documentation/man page and examples for more information.






            share|improve this answer















            This answer, taken partially verbatim from Digital signature on TeX.SX:



            Using the PDF Toolkit you can specify a separate owner and user password. Owner passwords are required when changing document properties, while user passwords may be required for performing certain actions, like printing. However, only specifying an owner password and allowing printing by default, would allow users of the document to view/read/print without authentication. You would need the following command line execution:



            pdftk input.pdf output output.pdf owner_pw foo allow printing


            The above commands takes as input input.pdf, sets the owner password to foo and would allow printing by any user. Modification of document settings require the owner password. See the documentation/man page and examples for more information.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Apr 13 '17 at 12:34









            Community

            1




            1










            answered Oct 13 '11 at 6:46









            WernerWerner

            447k699891695




            447k699891695








            • 1





              Thank you very much for reply. I was useful for me, I am now using pdftk like my tool. But let me confirm one doubt... Is it no possible to add security with PdfLatex?

              – NeoRiddle
              Oct 14 '11 at 4:49






            • 4





              As far as I know, this is not possible directly. You need external software to encrypt the file.

              – Werner
              Oct 14 '11 at 4:54














            • 1





              Thank you very much for reply. I was useful for me, I am now using pdftk like my tool. But let me confirm one doubt... Is it no possible to add security with PdfLatex?

              – NeoRiddle
              Oct 14 '11 at 4:49






            • 4





              As far as I know, this is not possible directly. You need external software to encrypt the file.

              – Werner
              Oct 14 '11 at 4:54








            1




            1





            Thank you very much for reply. I was useful for me, I am now using pdftk like my tool. But let me confirm one doubt... Is it no possible to add security with PdfLatex?

            – NeoRiddle
            Oct 14 '11 at 4:49





            Thank you very much for reply. I was useful for me, I am now using pdftk like my tool. But let me confirm one doubt... Is it no possible to add security with PdfLatex?

            – NeoRiddle
            Oct 14 '11 at 4:49




            4




            4





            As far as I know, this is not possible directly. You need external software to encrypt the file.

            – Werner
            Oct 14 '11 at 4:54





            As far as I know, this is not possible directly. You need external software to encrypt the file.

            – Werner
            Oct 14 '11 at 4:54











            0














            As pdftk is no longer easily available for certain Linux distributions (or no longer easy to keep track of what is going on), another option is qpdf. Password protection is possible. The basic syntax is:





            qpdf infile.pdf --encrypt <userpwd> <ownerpwd> <key length> [ restrictions ] outfile.pdf


            Where,




            • one or both of <userpassword> and <ownerpassword> may be empty strings


            • key length may be 40, 128, or 256 and the higher the value the more restrictions one can impose on the use of the pdf.


            For example,



              qpdf infile.pdf --encrypt usr own 128 --print=none -- outfile.pdf


            should prevent unauthorized printing.






            share|improve this answer




























              0














              As pdftk is no longer easily available for certain Linux distributions (or no longer easy to keep track of what is going on), another option is qpdf. Password protection is possible. The basic syntax is:





              qpdf infile.pdf --encrypt <userpwd> <ownerpwd> <key length> [ restrictions ] outfile.pdf


              Where,




              • one or both of <userpassword> and <ownerpassword> may be empty strings


              • key length may be 40, 128, or 256 and the higher the value the more restrictions one can impose on the use of the pdf.


              For example,



                qpdf infile.pdf --encrypt usr own 128 --print=none -- outfile.pdf


              should prevent unauthorized printing.






              share|improve this answer


























                0












                0








                0







                As pdftk is no longer easily available for certain Linux distributions (or no longer easy to keep track of what is going on), another option is qpdf. Password protection is possible. The basic syntax is:





                qpdf infile.pdf --encrypt <userpwd> <ownerpwd> <key length> [ restrictions ] outfile.pdf


                Where,




                • one or both of <userpassword> and <ownerpassword> may be empty strings


                • key length may be 40, 128, or 256 and the higher the value the more restrictions one can impose on the use of the pdf.


                For example,



                  qpdf infile.pdf --encrypt usr own 128 --print=none -- outfile.pdf


                should prevent unauthorized printing.






                share|improve this answer













                As pdftk is no longer easily available for certain Linux distributions (or no longer easy to keep track of what is going on), another option is qpdf. Password protection is possible. The basic syntax is:





                qpdf infile.pdf --encrypt <userpwd> <ownerpwd> <key length> [ restrictions ] outfile.pdf


                Where,




                • one or both of <userpassword> and <ownerpassword> may be empty strings


                • key length may be 40, 128, or 256 and the higher the value the more restrictions one can impose on the use of the pdf.


                For example,



                  qpdf infile.pdf --encrypt usr own 128 --print=none -- outfile.pdf


                should prevent unauthorized printing.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 11 mins ago









                jonjon

                19.8k23992




                19.8k23992






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to TeX - LaTeX 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.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f31901%2fhow-to-set-security-options-for-a-pdf-using-pdflatex%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

                    Paper upload error, “Upload failed: The top margin is 0.715 in on page 3, which is below the required...

                    Emraan Hashmi Filmografia | Linki zewnętrzne | Menu nawigacyjneGulshan GroverGulshan...

                    How can I write this formula?newline and italics added with leqWhy does widehat behave differently if I...