<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Brian,<br>
      <br>
      Good to make PDF export better, more professional. We uses the
      export a lot to deliver PDF to our professional print houses.<br>
      It works very wel, exept the lack off  "boxes" in the PDF file <br>
      TRIMbox = where to cut the printed result (needed for pinting)<br>
      BLEEDbox = is mostly TRIMbox + 5mm  (needed for printing)<br>
      MEDIAbox not realy needed<br>
      CROPbox not realt needed<br>
      <br>
      we to the printing with the API and basic code<br>
      <br>
      below our code with all the Filterdata we know off (maybe there
      are more ?)<br>
      so we need some  filter options to set the TRIMbox and the
      BLEEDbox<br>
      <br>
      pdfHighResFilterData() =
      array((makepropertyvalue("UseLosslessCompression", false))<br>
       AddPropertyValue(pdfHighResFilterData,"Quality",90) ' enkel als
      we UseLossLess FALSE is (dan is het jpg)<br>
'AddPropertyValue(pdfHighResFilterData,"ReduceImageResolution",true)<br>
      'AddPropertyValue(pdfHighResFilterData,"MaxImageResolution",150) '
      only if  reduceImages = TRUE and only  75, 150, 300, 600, 1200
      available<br>
      AddPropertyValue(pdfHighResFilterData,"UseTaggedPDF",false)<br>
      AddPropertyValue(pdfHighResFilterData,"SelectPdfVersion",0) '0=
      pdf1.4 , 1= pdf-xa<br>
      AddPropertyValue(pdfHighResFilterData,"ExportNotes",false)<br>
      AddPropertyValue(pdfHighResFilterData,"ExportBookmarks",false)<br>
      AddPropertyValue(pdfHighResFilterData,"OpenBookmarkLevels",-1)<br>
      AddPropertyValue(pdfHighResFilterData,"UseTransitionEffects",true)<br>
      AddPropertyValue(pdfHighResFilterData,"IsSkipEmptyPages",true)<br>
      AddPropertyValue(pdfHighResFilterData,"IsAddStream",false)<br>
      AddPropertyValue(pdfHighResFilterData,"EmbedStandardFonts",false)<br>
      AddPropertyValue(pdfHighResFilterData,"FormsType",0)<br>
      AddPropertyValue(pdfHighResFilterData,"ExportFormFields",true)<br>
AddPropertyValue(pdfHighResFilterData,"AllowDuplicateFieldNames",false)<br>
      AddPropertyValue(pdfHighResFilterData,"HideViewerToolbar",false)<br>
      AddPropertyValue(pdfHighResFilterData,"HideViewerMenubar",false)<br>
AddPropertyValue(pdfHighResFilterData,"HideViewerWindowControls",false)<br>
AddPropertyValue(pdfHighResFilterData,"ResizeWindowToInitialPage",false)<br>
      AddPropertyValue(pdfHighResFilterData,"CenterWindow",false)<br>
AddPropertyValue(pdfHighResFilterData,"OpenInFullScreenMode",false)<br>
AddPropertyValue(pdfHighResFilterData,"DisplayPDFDocumentTitle",true)<br>
      AddPropertyValue(pdfHighResFilterData,"InitialView",0)<br>
      AddPropertyValue(pdfHighResFilterData,"Magnification",0)<br>
      AddPropertyValue(pdfHighResFilterData,"Zoom",100)<br>
      AddPropertyValue(pdfHighResFilterData,"PageLayout",0)<br>
      AddPropertyValue(pdfHighResFilterData,"FirstPageOnLeft",false)<br>
      AddPropertyValue(pdfHighResFilterData,"InitialPage",1)<br>
      AddPropertyValue(pdfHighResFilterData,"Printing",2)<br>
      AddPropertyValue(pdfHighResFilterData,"Changes",4)<br>
AddPropertyValue(pdfHighResFilterData,"EnableCopyingOfContent",true)<br>
AddPropertyValue(pdfHighResFilterData,"EnableTextAccessForAccessibilityTools",true)<br>
AddPropertyValue(pdfHighResFilterData,"ExportLinksRelativeFsys",false)<br>
      AddPropertyValue(pdfHighResFilterData,"PDFViewSelection",0)<br>
AddPropertyValue(pdfHighResFilterData,"ConvertOOoTargetToPDFTarget",false)<br>
AddPropertyValue(pdfHighResFilterData,"ExportBookmarksToPDFDestination",false)<br>
      AddPropertyValue(pdfHighResFilterData,"_OkButtonString","")<br>
      AddPropertyValue(pdfHighResFilterData,"EncryptFile",false)<br>
      AddPropertyValue(pdfHighResFilterData,"DocumentOpenPassword","")<br>
      AddPropertyValue(pdfHighResFilterData,"RestrictPermissions",false)<br>
      AddPropertyValue(pdfHighResFilterData,"PermissionPassword","")<br>
          <br>
         oExport = Array( _<br>
            MakePropertyValue("Overwrite", True), _<br>
            MakePropertyValue("FilterName", "writer_pdf_Export"), _<br>
            MakePropertyValue("FilterData", pdfHighResFilterData), _<br>
         ) <br>
          <br>
      oDoc.storeTOURL(path,oExport)  <br>
      <br>
      hope i helps<br>
      <br>
      greetz<br>
      <br>
      Ferand<br>
      <br>
      <br>
    </div>
    <blockquote
cite="mid:CANW_+cDg9zXjaOmy0ywk22AvB3adWiyAFb+k4wtGiohwZRq9Og@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>
                    <div>I'm new to LibreOffice development and looking
                      at enhancing the PDF export functionality,
                      especially for Impress. I would like to add the
                      print options (such as "print" grayscale, black
                      and white, pages-per-sheet, ...) to PDF exporting.<br>
                      <br>
                    </div>
                    Specifically, I'm looking at adding the "LibreOffice
                    Impress" and "Page Layout" tabs (from the
                    File-->Print dialog) to the File-->"Export as
                    PDF" dialog. I have traced the code enough to see
                    that printing and PDF export use the same
                    OutputDevice class, which seems to support at least
                    some of the options in question, so I'm hopeful it
                    would work well. <br>
                    <br>
                  </div>
                  Questions I need help with:<br>
                </div>
                1. Is this a reasonable feature idea?<br>
              </div>
              2. Would this be reasonably straight-forward to implement
              (i.e., are printing and PDF export as compatible as I
              might hope)?<br>
            </div>
            3. Where is the code for the print dialog's tabs, and the
            export to PDF dialog's tabs?<br>
          </div>
          <div>4. Where is the code for setting the output layout (ex: 4
            pages per sheet)?<br>
          </div>
          <div><br>
          </div>
          <div>Some background info: <br>
            I am a university lecturer and I export PDFs of my notes
            daily. I can print to a PDF printer; however Acrobat and PDF
            Creator under Windows generate very large PDFs (they come
            out as bitmaps vs a more "vector" format). My slides have a
            background color and the PDF needs to be black-and-white (to
            print well without wasting ink), and have 4 slides per page.
            I have hacked around the code to prove I can generate a PDF
            in the correct black-and-white format, but I'd like to make
            it a real feature for everyone's use, rather than a hack in
            my copy.<br>
          </div>
          <div><br>
          </div>
          All help and guidance is welcome!<br>
        </div>
        Brian<br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
LibreOffice mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LibreOffice@lists.freedesktop.org">LibreOffice@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/libreoffice">http://lists.freedesktop.org/mailman/listinfo/libreoffice</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>