Class DifferencesPDFPresenter
This presenter creates a complete comparison PDF for any comparison. The PDF contains all pages of both documents along with a highlighting of all differences. The visual representation is similar to the one of the i-net PDFC GUI.
Inheritance
Inherited Members
Namespace: inetsoftware.Pdfc.Presenter
Assembly: inetsoftware.Pdfc.dll
Syntax
public class DifferencesPDFPresenter : ExportFilePresenter
Constructors
DifferencesPDFPresenter(Stream)
Creates the presenter with a stream. CAUTION: Since only a single stream is passed here, this instance must be used only for a single comparison! If used for a batch comparison all created PDFs will be written to this stream without further notice.
Declaration
public DifferencesPDFPresenter(Stream target)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | target |
DifferencesPDFPresenter(String)
Creates the presenter
Declaration
public DifferencesPDFPresenter(string rootFolder)
Parameters
Type | Name | Description |
---|---|---|
System.String | rootFolder | the folder to store the comparison results to. |
DifferencesPDFPresenter(String, Boolean)
Creates the presenter
Declaration
public DifferencesPDFPresenter(string target, bool isFolder)
Parameters
Type | Name | Description |
---|---|---|
System.String | target | the folder or file to store the comparison results to. |
System.Boolean | isFolder | if the target is a folder or a file |
Methods
SetPagelayout(Int32, Int32, Int32, Int32, Int32, Int32)
Set the desired pageLayout for the pdf to render.
Declaration
public void SetPagelayout(int pageWidth, int pageHeight, int marginLeft, int marginTop, int marginRight, int marginBottom)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pageWidth | the desired with in px, including margins. |
System.Int32 | pageHeight | the desired height in px, including margins. |
System.Int32 | marginLeft | margins to apply on the left side in px. |
System.Int32 | marginTop | margins to apply on top of the page in px. |
System.Int32 | marginRight | margins to apply on the right side in px. |
System.Int32 | marginBottom | margins to apply on the bottom side in px. |
SetPassword(String)
Set the pdf password
Declaration
public void SetPassword(string password)
Parameters
Type | Name | Description |
---|---|---|
System.String | password | the password for the pdf file. |