示例#1
0
 /// <summary>
 /// Initialization
 /// </summary>
 /// <param name="meta">MetaFile to process</param>
 override public void NewDocument(MetaFile meta)
 {
     if (FPDFFile != null)
     {
         FPDFFile.Dispose();
         FPDFFile = null;
     }
     FPDFFile               = new PDFFile();
     FPDFFile.FileName      = FileName;
     FPDFFile.Compressed    = Compressed;
     FPDFFile.PageWidth     = meta.CustomX;
     FPDFFile.PageHeight    = meta.CustomY;
     FPageWidth             = meta.CustomX;
     FPageHeight            = meta.CustomY;
     FPDFFile.CalculateOnly = CalculateOnly;
     FPDFFile.BeginDoc();
 }