I would like to use JODConverter as a service to generate PDF from
various documents, which will then be used to generate a thumbnail to
represent the image.
Many of the documents that I'm dealing with are large, sometimes more
than 700 pages; it seems to me that conversion time would be much less
if only the first page was converted (as that's all I'm going to be
using to generate the thumbnail anyway).
Is there any way to do this with JODConverter?
Kind regards
Mirko
I'm having some difficulty setting the option, however. I assume that
the change is in document-formats.js, something along the lines of the
following under the PDF section -
"DRAWING": {"FilterName": "draw_pdf_Export", "PageRange": "1-1"},
I have tried values of 1 and 1-1, but the full PDF is generated in
both cases.
Thanks,
Liam
Any thoughts?
On Feb 21, 1:28 am, Mirko Nasato <mirko.nas...@gmail.com> wrote:
"name": "Portable Document Format",
"extension": "pdf",
"mediaType": "application/pdf",
"storePropertiesByFamily": {
"DRAWING": {
"FilterName": "draw_pdf_Export",
"FilterData": {
"PageRange": "1"
}
}
// repeat for other families if needed...
Kind regards
Mirko
The average time for exporting all pages was 7.7218, while the average
time for exporting only the first page was 4.7386. Given that the
overhead of starting a new openoffice process each time is the same
for both, the actual performance gain (when used against the web app,
for example) will be greater.
Thanks again for your help - this project is going to save my bacon.