okular | annotate documents of various formats | Document Editor library

 by   KDE C++ Version: v23.04.2 License: No License

kandi X-RAY | okular Summary

kandi X-RAY | okular Summary

okular is a C++ library typically used in Editor, Document Editor, Qt5 applications. okular has no bugs and it has low support. However okular has 2 vulnerabilities. You can download it from GitHub.

Okular can view and annotate documents of various formats, including PDF, Postscript, Comic Book, and various image formats. It supports native PDF annotations.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              okular has a low active ecosystem.
              It has 545 star(s) with 106 fork(s). There are 12 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              okular has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of okular is v23.04.2

            kandi-Quality Quality

              okular has no bugs reported.

            kandi-Security Security

              okular has 2 vulnerability issues reported (0 critical, 0 high, 2 medium, 0 low).

            kandi-License License

              okular does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              okular releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of okular
            Get all kandi verified functions for this library.

            okular Key Features

            No Key Features are available at this moment for okular.

            okular Examples and Code Snippets

            No Code Snippets are available at this moment for okular.

            Community Discussions

            QUESTION

            gnuplot highlighting in vim
            Asked 2021-Feb-21 at 22:33

            I am using gnuplot to display data and I usually edit the files in vim. I would like to have some sort of syntax highlighting if it was possible. I tried to install several plugins with vim plug for gnuplot but I can't seem to make it work. here is the contents of my .vimrc file:

            ...

            ANSWER

            Answered 2021-Feb-21 at 22:33
            1. Vim assigns the gnuplot filetype to *.gpi files out of the box.
            2. Syntax highlighting for gnuplot is also built-in.

            Therefore…

            • Your two FiletType autocommands can't work as-is. They should match on gnuplot, not gp:

            Source https://stackoverflow.com/questions/66307326

            QUESTION

            PdfBox embed fonts into existing document
            Asked 2020-Nov-10 at 18:40

            I have a pdf file which shows font properties in Okular (or whatever PDF viewer) like that:

            ...

            ANSWER

            Answered 2020-Nov-10 at 18:40

            You'd need to know the name that is currently used in the resources, so check these with resources.getFontNames()

            2. To replace a standard 14 font, use this font object:

            Source https://stackoverflow.com/questions/64752894

            QUESTION

            Not able to build Okular from source
            Asked 2020-Apr-28 at 07:32

            I want to change something very simple in okular and may be I can do it myself by changing the source.

            I have the source code from Github [ https://github.com/KDE/okular ]. It does not have a README and nowhere in the code I found anything about build procedure.

            But here [ http://www.linuxfromscratch.org/blfs/view/svn/kde/okular5.html ] I found some commands to build it from source. These are the commands :-

            ...

            ANSWER

            Answered 2020-Apr-28 at 07:32

            You are missing extra-cmake-modules, a package from KDE Frameworks 5. This package is available in every linux distro that ships KDE. You'll need more -devel/-dev packages other than ECM.

            Take a look at http://www.linuxfromscratch.org/blfs/view/svn/kde/extra-cmake-modules.html for details, and chapter 30 too.

            The okular site (https://okular.kde.org) will also guide you to build from source.

            Source https://stackoverflow.com/questions/61474476

            QUESTION

            Pdf index/bookmarks/outline is always unfolded/uncollapsed/unwrapped . How to make it be always folded . I am only on linux
            Asked 2020-Apr-22 at 13:01

            This behavior is file specific and not due to evince or okular since there are pdf files that are always folded .

            ...

            ANSWER

            Answered 2020-Apr-22 at 13:01

            Use pdfedit . You can install it in Linux from here (it worked in ubuntu 18.04 LTS bionic beaver).

            Type pdfedit in terminal to open the program and load your pdf file .

            In the right side of the window you will see a tree . Open outlines . Then find each node of the pdf outline you want to be always display wrapped . Open that node and left click on it and choose add item to dictionary. This item should have property name Count be of int type and value equal to the negative of the already existing Count property (left click on the count property and choose show string representation , look at left down window and you will see the value that is has) . Replace the already existing Count property and that node will always be wrapped when you open the pdf .

            I still do not know a faster way to do that in linux .

            Edit : A somewhat faster solution is to use jPdfTweak . Download it from here and read the README.txt file on how to run it via terminal .

            Source https://stackoverflow.com/questions/57793627

            QUESTION

            Error 'E514: write error (file system full?)' when editing /dev/ttyUSB0 latency timer
            Asked 2019-Dec-05 at 23:20

            when I try to edit the latency_timer of /dev/ttyUSB0 on my laptop I get an error. Here what I do:

            ...

            ANSWER

            Answered 2019-Dec-05 at 23:20

            You are not supposed to edit these files using vi, just write values using echo. Vim will try to create a file in the same directory and rename it over the latency_timer file which does not work in /sys

            Instead, use something like:

            Source https://stackoverflow.com/questions/59198113

            QUESTION

            Samba giving "Function not implemented" error
            Asked 2019-Oct-02 at 10:34

            Been using samba on my Linux Mint machine to map to a windows network drive of a large university for a couple of years. Has always worked.

            ...

            ANSWER

            Answered 2019-Oct-02 at 10:34

            Thanks to this answer I have deduced a solution: https://serverfault.com/questions/414074/mount-cifs-host-is-down/929331#929331

            Not sure why but I suspect an upgrade in my computer of SMB has meant I am no longer compatible with their (older?) version.

            This now works if I do it manually in the terminal and specify vers = 1.0:

            Source https://stackoverflow.com/questions/58199056

            QUESTION

            PDF Copy Text Issue: Weird Characters
            Asked 2019-Apr-05 at 10:10

            I tried to copy text from a PDF file but get some weird characters. Strangely, Okular can recoqnize the text, but not with Sumatra PDF or Adobe, all three applications are installed in Windows 10 64 bit. To better explain my issue, here is the video https://streamable.com/sw1hc. The "text layer workaround file" is one solution I got. Any help is greatly appreciated. Regards

            ...

            ANSWER

            Answered 2019-Apr-05 at 10:10

            In short: The (original) PDF does not contain the information required for regular text extraction as described in the PDF specification. Depending on the exact nature of your task, you might try to add the required information to the existing text objects and fonts or you might go for OCR.

            Mapping character codes to Unicode as described in the PDF specification

            The PDF specification ISO 32000-1 (and similarly ISO 32000-2, too) describes an algorithm for mapping character codes to Unicode values using information available directly inside the PDF.

            It has been quoted very often in other stack overflow answers (see here, here, here, here, here, or here), so I won't quote it here again.

            Essentially this is the algorithm used by Adobe Acrobat during copy&paste and also by many other text extractors.

            In PDFs which don't contain the information required for text extraction, you eventually get to this point in the algorithm:

            If these methods fail to produce a Unicode value, there is no way to determine what the character code represents in which case a conforming reader may choose a character code of their choosing.

            What happens if the algorithm above fails to produce a Unicode value

            This is where the text extraction implementations differ, they try to determine the matching Unicode value by using heuristics or information from beyond the PDF or applying OCR to the glyph in question.

            That the different programs you tried returned so different results shows that

            1. your PDF does not contain the information required for the algorithm above from the PDF specification and

            2. the heuristics used by those programs differ relevantly and Okular's heuristics work best for your document.

            What to do in such a case

            There are multiple options, more or less feasible depending on your concrete case:

            1. Ask the source of the PDF for a version that contains proper information for text extraction.

              Unless you have a contract with that source that requires them to supply the PDFs in a machine readable form or the source is otherwise obligated to do so, they usually will decline, though...

            2. Apply OCR to the PDF in question.

              Depending on the quality of the OCR software and the glyphs in the PDF, the results can be of a questionable quality; e.g. in your "PDF copy text issue-Text layer workaround.pdf" the header "Chapter 1: Derivative Securities" has been recognized as "Chapter1: Deratve Securites"...

            3. You can try to interactively add manually created ToUnicode maps to the PDF, e.g. as described by Tilman Hausherr in his answer to "how to add unicode in truetype0font on pdfbox 2.0.0".

              Depending on the number of different fonts you have to create the mappings for, this approach might easily require way too much time and effort...

            Source https://stackoverflow.com/questions/55478339

            QUESTION

            gnuplot, splot, 3d: cannot mix screen or character coords with plot coords
            Asked 2019-Mar-17 at 18:57

            I have the following setup. There is a csv-file mini.csv, a gnuplot-script mwe.plt, and a shell-script mwe.sh to run it all. The error I get is the following:

            The contents of the above files are:

            ...

            ANSWER

            Answered 2019-Mar-17 at 18:57

            The problem is caused by the command

            Source https://stackoverflow.com/questions/55210028

            QUESTION

            emacs org-mode exports odt file but opens with PDF viewer
            Asked 2018-Dec-10 at 22:15

            For some reason org-mode correctly exports to an ODT file but opens it with the default PDF viewer (okular) instead of libreoffice. I have tried all the solutions mentioned in a similar post without any luck. For reference I am copying below the relevant sections of my init file. My emacs is 27.0.50 and my org-mode is 9.1.13.

            ...

            ANSWER

            Answered 2018-Dec-10 at 22:15

            After a lot of digging I came across these posts: post1 post2 from which the following solution emerged:

            Source https://stackoverflow.com/questions/51118896

            QUESTION

            What does # enter key do in linux terminal?
            Asked 2018-Sep-12 at 07:34

            I recently used #Enter (# followed by pressing Enter key) to get a newline after opening okular using xdg-open gave a bunch of logs. What processes or services does # enter kill and can it possibly introduce any errors in process running (that of okular)? Thanks a lot!

            EDIT

            Opening Okular via xdg-open gives a new line with output-

            ...

            ANSWER

            Answered 2018-Sep-12 at 07:32

            It's simply a comment starting symbol. That's also why it's chosen as the default symbol for the superuser shell, because someone mistakenly pasted a dangerous command intended for superusers will be safe

            Source https://stackoverflow.com/questions/47376979

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install okular

            Okular can be built like many other applications developed by KDE. See https://community.kde.org/Get_Involved/development for an introduction.

            Support

            Please report bugs on Bugzilla (https://bugs.kde.org/enter_bug.cgi?product=okular), and not on our GitLab instance (https://invent.kde.org).
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/KDE/okular.git

          • CLI

            gh repo clone KDE/okular

          • sshUrl

            git@github.com:KDE/okular.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link