Example #1
0
 private void SetPageSettings(PDFPageSettings pageSettings)
 {
     if (pageSettings.isMarginSet)
     {
         this.pageSettings.marginBottom = pageSettings.marginBottom;
         this.pageSettings.marginLeft   = pageSettings.marginLeft;
         this.pageSettings.marginRight  = pageSettings.marginRight;
         this.pageSettings.marginTop    = pageSettings.marginTop;
     }
     this.pageSettings.Font     = pageSettings.Font;
     this.pageSettings.FontSize = pageSettings.FontSize;
     this.pageSettings.size     = pageSettings.size;
 }
Example #2
0
 public void ConvertToPDF(string outputFile, PDFPageSettings pageSettings, PDFTableSettings tableSettings)
 {
     this.SetPageSettings(pageSettings);
     this.SetTableSettings(tableSettings);
     this.ConvertToPDF(outputFile);
 }