Hi, I need some help with the API. For years, I’ve used the .NET SDK for interfacing with Laserfiche within a WinForms VB.NET application that I created for our business. I’m experimenting with replacing that older program with something on a more modern stack, and I’ve narrowed it down building a Blazor Server App (ASP.NET). Since this is a web server app, all the code runs on an internal webserver and the client is just a web browser, and therefore the LF .NET SDK is not the proper interface. I have to use the Laserfiche API Server, namely Version 1 for self-hosted Laserfiche, because it appears the Repository API version 2 is not available for self-hosted environments yet…only available for Laserfiche Cloud. And the difference between v1 and v2 seems to be the crux of the problem I’m having with this experiment.
The only thing I use LF interop for in my program is to search for, find, then export a document as a PDF file to attach to an email that my program generates. The exporting as PDF is where the problem is. This works fine in the .NET SDK environment using the DocumentExporter class. But in LF API Server v1, that doesn’t appear to be available. Version 2 has it, as far as I can tell from the Laserfiche online documentation. But I’ve got version 1 because that’s all that it compatible with my environment. And I’ve spent hours and hours farting around, including extensive AI assistance, and it seems that the only thing I can do with the API Server version 1 is to export the eDoc, if one exists (reference https://developer.laserfiche.com/docs/guides/documents-and-folders/guide_exporting-documents-v1/). But most of the documents I’m looking to export from the Repo as PDF do not already have a PDF eDoc behind them. They’re just the native TIFF image files. So they need to be converted to PDF then exported, which again the .NET SDK supports thru the DocumentExporter class, and it appears API Server version 2 supports (reference https://developer.laserfiche.com/docs/guides/documents-and-folders/guide_exporting-documents/). But not version 1.
So couple question:
- When will v2 be available for self-hosted Laserfiche implementations?
- What options do I have currently with the v1 API Server to get a PDF version of a Repo document that is only contains a TIFF image?
Any help would be greatly appreciated, as this project is dead if I cannot recreate this vital functionality.
Thank you.