1. 11 Aug, 2019 4 commits
  2. 10 Aug, 2019 1 commit
  3. 08 Aug, 2019 2 commits
  4. 07 Aug, 2019 1 commit
  5. 21 Jul, 2019 2 commits
    • David Hurka's avatar
      Improve documentation of area classes · 0602576c
      David Hurka authored
      Summary:
      This shall improve the documentation of several area classes,
      including NormalizedPoint, NormalizedRect, RegularArea, RegularAreaRect.
      
      This shall also clarify when absolute coordinates and when normalized
      coordinates are used.
      
      Describes the normalized coordinate system in NormalizedPoint, with a new term “reference area” do describe mapping.
      
      TODO:
      Page view rotation.
      This is not done consistently in Okular, but can be changed later. I think this documentation will help (me) with that then.
      
      Test Plan: Run doxygen
      
      Reviewers: #okular, aacid
      
      Reviewed By: #okular, aacid
      
      Subscribers: aacid, okular-devel
      
      Tags: #okular
      
      Differential Revision: https://phabricator.kde.org/D21266
      0602576c
    • David Hurka's avatar
      Improve documentation of TextEntity stuff · c61a9587
      David Hurka authored
      Summary:
      This adds some important documentation on TextEntity and other classes, and improves some of the existing documentation.
      
      This includes changing parameter names from ‘rect’ to ‘area’, because I found ‘rect’ misleading.
      
      Test Plan: Run doxygen
      
      Reviewers: #okular, aacid
      
      Reviewed By: #okular, aacid
      
      Subscribers: aacid, yurchor, okular-devel
      
      Tags: #okular
      
      Differential Revision: https://phabricator.kde.org/D21271
      c61a9587
  6. 20 Jul, 2019 6 commits
  7. 14 Jul, 2019 1 commit
  8. 03 Jul, 2019 1 commit
  9. 22 Jun, 2019 1 commit
  10. 10 Jun, 2019 1 commit
  11. 04 Jun, 2019 1 commit
  12. 03 Jun, 2019 1 commit
  13. 27 May, 2019 1 commit
  14. 09 May, 2019 1 commit
  15. 15 Apr, 2019 1 commit
    • Michael Weghorn's avatar
      PDF: Implement scaling options for non-rasterized printing · 748884b4
      Michael Weghorn authored
      Summary:
      This adds another 'FilePrinter::printFile' method that
      accepts an additional parameter to specify whether or not to
      do scaling and passes the 'fit-to-page' to CUPS dependent
      on what is specified.
      
      If FilePrinter is used, The PDF generator now passes this
      option depending on the scaling mode that was selected in the
      custom print options widget, which is therefore now enabled
      for non-rasterized printing as well.
      
      Test Plan:
      1) open a PDF document in Okular and open the print dialog
      2) go to the "PDF Options" tab
      3) verify that "Force rasterisation" is disabled, but the
        "Scale mode" combobox is active.
      4) test all the three options available in the "Scale mode"
         combobox do what they say
      5) Make sure the three options still work as expected for
         the "Force rasterisation" case.
      
      Reviewers: #okular, ngraham, sander
      
      Reviewed By: ngraham
      
      Subscribers: aacid, fvogt, okular-devel
      
      Tags: #okular
      
      Differential Revision: https://phabricator.kde.org/D18179
      748884b4
  16. 03 Apr, 2019 1 commit
    • Michael Weghorn's avatar
      Add option to ignore print margins for non-PDF generators · 8bf1a911
      Michael Weghorn authored
      Summary:
      This adds a combobox in the print dialog of the non-PDF
      generators to allow selecting whether or not to take
      print margins into account.
      
      For the PDF case and rasterized printing, new print otions have
      been implemented in commit 2e97d587
      already, which adds an additional option to do no scaling at all.
      
      For consistency reasons, the same terms also used for the PDF
      case are used in the combobox (i.e. the two of the three that
      apply).
      
      This adds a new abstract class 'PrintOptionsWidget' with a
      'ignorePrintMargins()' method to indicate whether print margins
      should be ignored or not, and a default implementation.
      The existing widget for the PDF generator now derives from this
      class.
      
      In order to avoid an ABI breakage, the return value of
      'Document::printConfigurationWidget' is left as a 'QWidget *'
      and a dynamic_cast is done on use.
      
      FilePrinter is adapted to take into account the value set by
      'QPrinter::setFullPage()' and the margin options
      are now passed accordingly (either the values set in the dialog or '0').
      
      A big thanks to Albert Astals Cid <aacid@kde.org> for showing how
      to extend the initial implementation to cover more generators.
      
      Test Plan:
      1) Open a PostScript file in Okular (using a document size that matches
        a paper size available on the printer used later makes it easier
        to see things behave as expected)
      
      2) open print dialog, go to "Print options" and notice that there is a new
        "Scale mode" combobox whose value is set to "Fit to printable area"
         by default.
      
      3) don't change any options, print to a printer that has hardware margins
      
      Expected result: the document is scaled to the printable area (e.g.
      scaled down so that the printer's hardware margins remain empty) as it
      has been without this change.
      
      4) Set the value of the "Print Options" -> "Scale mode" combobox to
         "Fit to full page" and print again
      
      Expected result: The document is scaled to the full page size, i.e. ignoring
      the printer's hardware margins.
      
      5) Try steps 1-4 with other document formats supported by Okular and
         observe that they behave the same (except for the PDF case, where
         there's a combobox with three options that has been implemented
         independent of this change).
      
      Reviewers: #okular, ngraham
      
      Reviewed By: ngraham
      
      Subscribers: fvogt, rkflx, arthurpeters, ltoscano, okular-devel, aacid, ngraham
      
      Tags: #okular
      
      Differential Revision: https://phabricator.kde.org/D10974
      8bf1a911
  17. 30 Mar, 2019 1 commit
  18. 12 Mar, 2019 1 commit
  19. 24 Feb, 2019 1 commit
    • Yuri Chornoivan's avatar
      Add TeXstudio support · 2b6e75e4
      Yuri Chornoivan authored
      Summary:
      Some people need it because it is now the default TeX editor in distributions.
      
      BUG: 404120
      
      Test Plan: "Settings -> Configure Okular... -> Editor -> TeXstudio". Should work for the reverse search if the tex file is compiled with \usepackage[active]{srcltx}
      
      Reviewers: #okular, ngraham
      
      Reviewed By: ngraham
      
      Subscribers: ngraham, okular-devel, kde-doc-english
      
      Tags: #okular, #documentation
      
      Differential Revision: https://phabricator.kde.org/D19272
      2b6e75e4
  20. 13 Feb, 2019 1 commit
  21. 07 Feb, 2019 1 commit
  22. 28 Jan, 2019 2 commits
  23. 16 Jan, 2019 1 commit
  24. 11 Jan, 2019 1 commit
  25. 10 Jan, 2019 1 commit
    • Chinmoy Ranjan Pradhan's avatar
      Implement digital signature support for PDF · a234a902
      Chinmoy Ranjan Pradhan authored
      This is a squash of the original branch
      
      It also contains fixes/rework from Albert Astals Cid
      
      If you're interested in its history have a look at the
      gsoc2018_digitalsignature branch
      
      The poppler dependency situation is:
       * With 0.51 you get most signature information
       * With 0.68 you also get signature location/reason information
       * With 0.73 you also get signature certificate information
      a234a902
  26. 09 Jan, 2019 3 commits
  27. 06 Jan, 2019 1 commit