Methods | PdfUtil.GetDocumentPdfPath(DocumentItem, ResourceFileItem) Method
Gets a path to the PDF file if the document has a PDF loaded as an image or a native link.
Syntax
C# Copy
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
Reference
PdfUtil Class
GetDocumentPdfPath Overload
Compiled.EDD.Scripting.Extensions.Pdf Namespace