Example #1
0
 public Prince()
 {
     mEvents                = null;
     mInputType             = "auto";
     mJavaScript            = false;
     mNoNetwork             = false;
     mVerbose               = false;
     mDebug                 = false;
     mNoWarnCss             = false;
     mInsecure              = false;
     mNoParallelDownloads   = false;
     mXInclude              = true;
     mEmbedFonts            = true;
     mSubsetFonts           = true;
     mForceIdentityEncoding = false;
     mCompress              = true;
     mNoArtificialFonts     = false;
     mNoAuthPreemptive      = false;
     mNoAuthorStyle         = false;
     mNoDefaultStyle        = false;
     mEncrypt               = false;
     mKeyBits               = 40;
     mDisallowPrint         = false;
     mDisallowModify        = false;
     mDisallowCopy          = false;
     mDisallowAnnotate      = false;
     mStyleSheets           = "";
     mJavaScripts           = "";
     mFileAttachments       = "";
     mRemaps                = "";
 }
 /// <summary>The <c>PrinceBase</c> constructor.</summary>
 protected PrinceBase(string princePath, PrinceEvents events = null) =>
 (_princePath, _events) = (princePath, events);
Example #3
0
 public Prince(string princePath, PrinceEvents events)
     : this()
 {
     mPrincePath = princePath;
     mEvents = events;
 }
Example #4
0
 public Prince()
 {
     mEvents = null;
     mInputType = "auto";
     mJavaScript = false;
     mNoNetwork = false;
     mVerbose = false;
     mDebug = false;
     mNoWarnCss = false;
     mInsecure = false;
     mNoParallelDownloads = false;
     mXInclude = false;
     mXmlExternalEntities = false;
     mNoLocalFiles = false;
     mEmbedFonts = true;
     mSubsetFonts = true;
     mForceIdentityEncoding = false;
     mCompress = true;
     mConvertColors = false;
     mNoArtificialFonts = false;
     mNoAuthPreemptive = false;
     mNoAuthorStyle = false;
     mNoDefaultStyle = false;
     mEncrypt = false;
     mKeyBits = 40;
     mDisallowPrint = false;
     mDisallowModify = false;
     mDisallowCopy = false;
     mDisallowAnnotate = false;
     mStyleSheets = "";
     mJavaScripts = "";
     mFileAttachments = "";
     mRemaps = "";
 }
Example #5
0
 /** Constructor for PrinceControl.
  * @param exePath The path of the Prince executable.
  * @param events An instance of the PrinceEvents interface that will
  * receive error/warning messages returned from Prince.
  */
 public PrinceControl(string exePath, PrinceEvents events)
     : base(exePath, events)
 {
     jobResources = new List<byte[]>();
     documents = new List<string>();
     attachments = new List<Attachment>();
 }
 /// <summary>
 /// Constructor for <c>PrinceControl</c>.
 /// </summary>
 /// <param name="princePath">
 /// The path of the Prince executable. For example, this may be
 /// <c>C:\Program&#xA0;Files\Prince\engine\bin\prince.exe</c> on Windows.
 /// </param>
 /// <param name="events">
 /// An implementation of <c>PrinceEvents</c> that will receive messages
 /// returned from Prince.
 /// </param>
 public PrinceControl(string princePath, PrinceEvents events = null)
     : base(princePath, events)
 {
 }
Example #7
0
 public Prince(string princePath, PrinceEvents events) : this()
 {
     mPrincePath = princePath;
     mEvents     = events;
 }
Example #8
0
 /** Constructor for PrinceControl.
  * @param exePath The path of the Prince executable.
  * @param events An instance of the PrinceEvents interface that will
  * receive error/warning messages returned from Prince.
  */
 public PrinceControl(string exePath, PrinceEvents events)
     : base(exePath, events)
 {
 }