Hi There,
We recently got evaluation license for “GroupDocs.Viewer”.
Today, we discovered “GroupDocs.Conversion”.
Our usecase : We have documents (office, pdf, mp4, etc) and images stored in our system. These documents and images need to be displayed to the user in our web application in a quick view window so that the user can quickly view and then download the full document/image.
Current Logic : We are converting the document(office, image) to pdf format and then stream the .pdf file to the window in browser. Please see our conversion logic below.
===================
try (Viewer viewer = new Viewer(documentInputStream) ) {
Path outputPdfFilePath = getOutputFilePath();
PdfViewOptions viewOptions = new
PdfViewOptions(outputPdfFilePath.toAbsolutePath().toString());
viewer.view(viewOptions);
// copy to the browser’s response stream
(new
FileInputStream(outputFilePath.toAbsolutePath().toString())).transferTo(response.getOutputStream());
}
===================
Question : Even though we initially chose “groupdocs Viewer”, we’re now asking you if “groupdocs Conversion” is a better tool for converting to pdf ?
Thank you.
BR,
~A