Пример #1
0
 private void PublishWordDocument(object officeDocument, string destinationFilePath, IPDFPublisherOptions options)
 {
     using (PublisherObject ppo = new PublisherObject())
     {
         ppo.Object.ReconstructHyperLinks = options.ReconstructHyperlinks;
         ppo.Object.PublishActiveWordDocument(destinationFilePath, officeDocument, options.PageRange, 0);
     }
 }
Пример #2
0
 public void SetPDFPermissions(string pdfFilePath, string ownerPassword, bool disablePrinting, bool disableModification, bool disableCopy, bool disableNotesModification)
 {
     CheckLicense();
     using (PublisherObject ppo = new PublisherObject())
     {
         ppo.Object.SetPermission(pdfFilePath, ownerPassword, disablePrinting, disableModification, disableCopy, disableNotesModification);
     }
 }
Пример #3
0
 private void PublishPowerPointPresentation(object officeDocument, string destinationFilePath, IPDFPublisherOptions options)
 {
     using (PublisherObject ppo = new PublisherObject())
     {
         if (string.IsNullOrEmpty(options.PageRange))
         {
             ppo.Object.PublishWithPowerPoint(destinationFilePath, officeDocument);
         }
         else
         {
             int vFrom, vTo;
             ParsePageRange(options.PageRange, out vFrom, out vTo);
             ppo.Object.PublishWithPowerPoint(destinationFilePath, officeDocument, vFrom, vTo);
         }
     }
 }