1. 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
  2. 31 Aug, 2018 1 commit
  3. 14 Mar, 2015 1 commit
  4. 27 Oct, 2014 1 commit
  5. 07 Aug, 2014 1 commit
  6. 06 Sep, 2012 1 commit
  7. 27 Jul, 2011 1 commit
  8. 01 Jun, 2011 1 commit
  9. 04 Jun, 2010 2 commits
  10. 16 Apr, 2010 1 commit
  11. 24 Dec, 2009 1 commit
  12. 14 Dec, 2008 1 commit
    • John Layt's avatar
      Fix Print to File output by using Ghostscript ps2pdf to convert ps print file · cc45ce4a
      John Layt authored
      into pdf format and save that.  Only enabled in PDF, DVI, and DJVU generators
      if ps2pdf is found in the path.  Ghostscript is almost always guaranteed to
      be installed given many parts of the printing stack depends on it.
      
      Note that resulting PDF or PS file will have the page size as set in the print
      dialog and not the page size of the original document, i.e. if an A5 booklet
      is printed but the dialog page size is set to A4 then the resulting file will
      be A4 and not A5.
      
      svn path=/trunk/KDE/kdegraphics/okular/; revision=897000
      cc45ce4a
  13. 11 Dec, 2008 1 commit
    • John Layt's avatar
      Fixes to FilePrinter for Qt 4.4: · 25508988
      John Layt authored
      1) detectCupsService() finally works because QTCPSocket finally works.
         Assumes Cups is on localhost:631 which is a compromise as Qt won't
         even tell us if it is using Cups, let alone where Cups is.
      
      2) Duplex printing obeys user selected option from dialog rather than 
         just guessing.
      
      3) If custom page margins set then respect these
      
      
      svn path=/trunk/KDE/kdegraphics/okular/; revision=895905
      25508988
  14. 05 Jun, 2008 1 commit
  15. 12 Jan, 2008 2 commits
  16. 03 Dec, 2007 1 commit
  17. 27 Nov, 2007 1 commit
  18. 26 Nov, 2007 1 commit
    • John Layt's avatar
      Enable Okular printing features: · 1b1ed945
      John Layt authored
      * Add FilePrinter class to enable printing via postscript files
      * DJVU, PDF, and PS backends print FilePrinter
      * All backends enable printing of bookmarked pages
      * Print and Print Preview actions enabled/disabled depending on backends
        printing ability
      
      Note that FilePrinter only works on *NIX platforms with Cups, lpr, or lp.
      
      
      
      svn path=/trunk/KDE/kdegraphics/okular/; revision=741990
      1b1ed945