Click or drag to resize

PdfUtilGetDocumentPdfPath(DocumentItem, ResourceFileItem) Method

Gets a path to the PDF file if the document has a PDF loaded as an image or a native link.

Namespace: Compiled.EDD.Scripting.Extensions.Pdf
Assembly: Compiled.EDD.Scripting (in Compiled.EDD.Scripting.dll) Version: 9.0.0.0-142fa9725
Syntax
C#
public static string GetDocumentPdfPath(
	DocumentItem document,
	out ResourceFileItem pdfResource
)

Parameters

document  DocumentItem
The document to get the PDF file path from.
pdfResource  ResourceFileItem
The associated ResourceFileItem of either the Image or Native for the pdf.

Return Value

String
The PDF file path found on the DocumentItem.
Remarks
Checks for a PDF image source first, and returns that PDF path. If no image, then checks for a native PDF path.
See Also