Customize the folder where Okular saves annotations

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











up vote
1
down vote

favorite












I know that Okular saves the annotations made in a PDF document in ~/.kde/share/apps/okular/docdata. I would like to change this directory into the same one where the PDF document is. I cannot seem to find this possibility



The purpose is moving around the base document and the annotations in tandem by copying just one directory, and still keep them separate in case I want to distribute the non-annotated PDF alone.



Can I customize the folder where annotations are stored? If so, how should I code the directory where the current document is?



Note: I run on Ubuntu 14.04 LTS, and the supported version of Okular is 0.19.3 (Using KDE Development Platform 4.13.3)










share|improve this question

























    up vote
    1
    down vote

    favorite












    I know that Okular saves the annotations made in a PDF document in ~/.kde/share/apps/okular/docdata. I would like to change this directory into the same one where the PDF document is. I cannot seem to find this possibility



    The purpose is moving around the base document and the annotations in tandem by copying just one directory, and still keep them separate in case I want to distribute the non-annotated PDF alone.



    Can I customize the folder where annotations are stored? If so, how should I code the directory where the current document is?



    Note: I run on Ubuntu 14.04 LTS, and the supported version of Okular is 0.19.3 (Using KDE Development Platform 4.13.3)










    share|improve this question























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I know that Okular saves the annotations made in a PDF document in ~/.kde/share/apps/okular/docdata. I would like to change this directory into the same one where the PDF document is. I cannot seem to find this possibility



      The purpose is moving around the base document and the annotations in tandem by copying just one directory, and still keep them separate in case I want to distribute the non-annotated PDF alone.



      Can I customize the folder where annotations are stored? If so, how should I code the directory where the current document is?



      Note: I run on Ubuntu 14.04 LTS, and the supported version of Okular is 0.19.3 (Using KDE Development Platform 4.13.3)










      share|improve this question













      I know that Okular saves the annotations made in a PDF document in ~/.kde/share/apps/okular/docdata. I would like to change this directory into the same one where the PDF document is. I cannot seem to find this possibility



      The purpose is moving around the base document and the annotations in tandem by copying just one directory, and still keep them separate in case I want to distribute the non-annotated PDF alone.



      Can I customize the folder where annotations are stored? If so, how should I code the directory where the current document is?



      Note: I run on Ubuntu 14.04 LTS, and the supported version of Okular is 0.19.3 (Using KDE Development Platform 4.13.3)







      pdf okular






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Oct 2 '17 at 8:52









      XavierStuvw

      3391822




      3391822




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          The short answer is that you can’t.



          As indicated in the documentation,




          Annotations created in Okular are automatically saved in the internal local data folder for each user.




          (as you determined). Looking at the source code, this isn’t externally customisable; to change this behaviour, you’d need to change the program itself.



          There are two supported ways of storing annotations with the PDF file:



          • exporting a document archive, which is a single file storing both the PDF file and its annotations;

          • saving the PDF as a new PDF, which will contain the annotations too.

          Neither of these address your requirement to be able to provide the un-annotated PDF; there doesn’t seem to be a way of doing that easily, short of providing a copy of the original PDF yourself.






          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%2f395599%2fcustomize-the-folder-where-okular-saves-annotations%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote



            accepted










            The short answer is that you can’t.



            As indicated in the documentation,




            Annotations created in Okular are automatically saved in the internal local data folder for each user.




            (as you determined). Looking at the source code, this isn’t externally customisable; to change this behaviour, you’d need to change the program itself.



            There are two supported ways of storing annotations with the PDF file:



            • exporting a document archive, which is a single file storing both the PDF file and its annotations;

            • saving the PDF as a new PDF, which will contain the annotations too.

            Neither of these address your requirement to be able to provide the un-annotated PDF; there doesn’t seem to be a way of doing that easily, short of providing a copy of the original PDF yourself.






            share|improve this answer
























              up vote
              2
              down vote



              accepted










              The short answer is that you can’t.



              As indicated in the documentation,




              Annotations created in Okular are automatically saved in the internal local data folder for each user.




              (as you determined). Looking at the source code, this isn’t externally customisable; to change this behaviour, you’d need to change the program itself.



              There are two supported ways of storing annotations with the PDF file:



              • exporting a document archive, which is a single file storing both the PDF file and its annotations;

              • saving the PDF as a new PDF, which will contain the annotations too.

              Neither of these address your requirement to be able to provide the un-annotated PDF; there doesn’t seem to be a way of doing that easily, short of providing a copy of the original PDF yourself.






              share|improve this answer






















                up vote
                2
                down vote



                accepted







                up vote
                2
                down vote



                accepted






                The short answer is that you can’t.



                As indicated in the documentation,




                Annotations created in Okular are automatically saved in the internal local data folder for each user.




                (as you determined). Looking at the source code, this isn’t externally customisable; to change this behaviour, you’d need to change the program itself.



                There are two supported ways of storing annotations with the PDF file:



                • exporting a document archive, which is a single file storing both the PDF file and its annotations;

                • saving the PDF as a new PDF, which will contain the annotations too.

                Neither of these address your requirement to be able to provide the un-annotated PDF; there doesn’t seem to be a way of doing that easily, short of providing a copy of the original PDF yourself.






                share|improve this answer












                The short answer is that you can’t.



                As indicated in the documentation,




                Annotations created in Okular are automatically saved in the internal local data folder for each user.




                (as you determined). Looking at the source code, this isn’t externally customisable; to change this behaviour, you’d need to change the program itself.



                There are two supported ways of storing annotations with the PDF file:



                • exporting a document archive, which is a single file storing both the PDF file and its annotations;

                • saving the PDF as a new PDF, which will contain the annotations too.

                Neither of these address your requirement to be able to provide the un-annotated PDF; there doesn’t seem to be a way of doing that easily, short of providing a copy of the original PDF yourself.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Oct 2 '17 at 9:02









                Stephen Kitt

                145k22317382




                145k22317382



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f395599%2fcustomize-the-folder-where-okular-saves-annotations%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