I have a customer that has an SDK 8.0 application that exports files out of Laserfiche in PDF format. These documents are stored in Laserfiche either as electronic PDF files or Laserfiche documents (tiff images). Everything is exported in PDF format. They are in the process of testing out their applications with SDK 9.0. The original SDK 8.0 code will not function properly in 9.0. The issue is with exporting the Laserfiche document. The error received is “Document_Format_PDF is not a member of DocumentProcessor90”
They have not been able to get ExportPdf to function either. Below is the original 8.0 code. Any additional direction or sample code would be greatly appreciated.
The code original code is:
Dim doc as LFDocument
Dim db as LFDatabase
Dim DocE as new DocumentExporter
Dim electri_1 as LFElectfile
doc = db.GetEntryByPath(“the_path_in-Laserifiche”)
DocE.SourceDocument = doc
electri_1 = doc.ElectFile
if electri_1 .IsEmpty then (If this is a image then do this)
DocE.format = Documnet_Format.Documetn_Format_PDF
Else ( if this is pdf then do this)
DocE.format = Documnet_Format.Documetn_Format_Electronicfile
End if
DocE.ExportToFile(“c:\test\mypdf.pdf”)