OriginalDocumentFileName

This property allows to access the page property to examine the original file name for the image. This is useful when attempting to track original file names for pages when a document is split or merged through Verifier, Web Verifier or the Page Separation engine.

Syntax

pWorkdoc.Pages(0).OriginalDocumentFileName

Sample Code

Private Sub CreateCollectionofPageOrgFileName(pWorkdoc as SCBCdrPROJLib.ISCBCdrWorkdoc)
   Dim WdcPageCount as Long ' Total Number of pages associated to the WorkDoc
   Dim CurPage as Long ' Current Page Number
   Dim OrgFilename as String ' Original File Name of the selected page
   Dim OrgFilenames() as String ' Array of Original File Name of all Pages of the WorkDocument
   WdcPageCount = pWorkdoc.PageCount
   ReDim OrgFilenames(WdcPageCount)
   For CurPage=0 To WdcPageCount-1
      OrgFilenames(CurPage) = pWorkdoc.Pages(CurPage).OriginalDocumentFileName
   Next CurPage
   ' Write the original file name of all pages to log.
   For CurPage=0 To WdcPageCount-1
      OrgFilename = OrgFilenames(CurPage)
      Project.LogScriptMessageEx CDRTypeInfo, CDRSeverityLogFileOnly, " Original File Name of Page: " & CStr(CurPage+1) & " is [" & OrgFilename & "]"
   Next CurPage
End Sub