class Wacom::Kiosk::Pdf::PdfHelper
class Wacom::Kiosk::Pdf::PdfHelper
: public IDisposable
See also: System.IDisposable
Summary
| Members | Descriptions |
|---|---|
{property} int???? DocumentPagesCount | |
public inline PdfHelper(ILogger logger) | |
public inline string GetSignatureInfo(string pdfDocPath,string fieldName) | Returns string with signatory name & date and time of signature. |
public inline PdfHelper Initialize(string filePath) | Initializes the PDF helper with a PDF document from a file path. |
public inline PdfHelper Initialize(MemoryStream memoryStream) | Initializes the PDF helper with a PDF document from a memory stream. |
public inline string ParsePage(int pageNum,int? imageWidth) | Parses a page from the currently initialized PDF document. |
public inline string ParsePage(string filePath,int pageNum,int? imageWidth) | Parses the page. |
public inline string ParsePage(Stream pdfFile,int pageNum,int? imageWidth) | Parses the page. |
public inline string ParsePage(byte[] pdfFile,int pageNum,int? imageWidth) | Parses the page. |
public inline List< string > ParsePages(string filePath,int? imagesWidth) | Parses the pages. |
public inline List< string > ParsePages(Stream pdfFile,int? imagesWidth) | Parses the pages. |
public inline List< string > ParsePages(byte[] pdfFile,int? imagesWidth) | Parses the pages. |
public inline string GetThumbnails(int from,int to) | Gets the thumbnails. |
public inline void Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
Members
{property} int???? DocumentPagesCount
public inline PdfHelper(ILogger logger)
public inline string GetSignatureInfo(string pdfDocPath,string fieldName)
Returns string with signatory name & date and time of signature.
Parameters
-
pdfDocPathFilename of PDF document. -
fieldNameName of signature field.
Returns
Signature details if signed, otherwise null.
Can also be used to determine if the given field has been signed.
public inline PdfHelper Initialize(string filePath)
Initializes the PDF helper with a PDF document from a file path.
Parameters
filePathThe file path to the PDF document.
Returns
The current instance of PdfHelper.
public inline PdfHelper Initialize(MemoryStream memoryStream)
Initializes the PDF helper with a PDF document from a memory stream.
Parameters
memoryStreamThe memory stream containing the PDF document.
Returns
The current instance of PdfHelper.
public inline string ParsePage(int pageNum,int? imageWidth)
Parses a page from the currently initialized PDF document.
Parameters
-
pageNumThe page number to parse. -
imageWidthThe width of the image (optional).
Returns
A JSON string representation of the parsed page.
public inline string ParsePage(string filePath,int pageNum,int? imageWidth)
Parses the page.
Parameters
-
filePathThe file path. -
pageNumThe page number. -
imageWidthWidth of the image.
Returns
public inline string ParsePage(Stream pdfFile,int pageNum,int? imageWidth)
Parses the page.
Parameters
-
pdfFileThe PDF file. -
pageNumThe page number. -
imageWidthWidth of the image.
Returns
Json string.
public inline string ParsePage(byte[] pdfFile,int pageNum,int? imageWidth)
Parses the page.
Parameters
-
pdfFileThe PDF file. -
pageNumThe page number. -
imageWidthWidth of the image.
Returns
Json string.
public inline List< string > ParsePages(string filePath,int? imagesWidth)
Parses the pages.
Parameters
-
filePathThe file path. -
imagesWidthWidth of the image.
Returns
List fo Json strings.
public inline List< string > ParsePages(Stream pdfFile,int? imagesWidth)
Parses the pages.
Parameters
-
pdfFileThe PDF file. -
imagesWidthWidth of the image.
Returns
List fo Json strings.
public inline List< string > ParsePages(byte[] pdfFile,int? imagesWidth)
Parses the pages.
Parameters
-
pdfFileThe PDF file. -
imagesWidthWidth of the image.
Returns
List fo Json strings.
public inline string GetThumbnails(int from,int to)
Gets the thumbnails.
Parameters
-
fromFrom. -
toTo.
Returns
Json string with thumbnail images in base64 format.
Exceptions
Exception
public inline void Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.