Many scanned pages that we want to export to PDF do not match up precisely with the PDFPageSize enumeration and have multiple page sizes within the same Document. How can I do an ExportPDF with the resulting file matching the page size of the image, rather than one of the PDFPageSize enumeration members? And how can I vary the page size for each page within the document, based on the size of the original image?
Question
Question
Answer
Hi Wayne. It seems that this bug also still affects DS 9.2. I've filed an entry in our bug tracking system. Unfortunately, I don't have an immediate workaround for you. Though if you want to use a more up-to-date version of LFSO/PdfExporter (specifically, I tried the LFSO92 + PdfExporter92 combination), I can verify that they still exhibit the correct behavior.
Replies
Hey there Wayne,
I'm definitely not an SDK guru, but I wanted to make sure that you got some response on here. I'm really sorry about the long delay in getting back to you!
I spoke with a developer on this one and, long story short, PDFPageSize is only relevant for text only documents and you want to create a pdf from those text pages. Since it sounds like you already have image pages, it should already work the way that you expect.
Since it clearly ISN'T working the way you expect, we're guessing that you may be using DocumentServices 9.1 and not DS 9.2 (As in Laserfiche.DocumentServices.dll). DS 9.1 had some issues with page sizes and that could very well be causing this issue of things not working as expected in your current code.
Once again, I'm very sorry in the delay responding. If you have any questions, just respond here and I'll get a notification and make sure that you get the answers you need.
Thanks so much for your patience!
Correct, I am using DS 9.1. I didn't think DS 9.2 was available yet... And if you leave the page size alone, it defaults your image page to 8.5x11--not ideal. PDFPageSize does change the page size for image pages in 9.1.
So to summarize, if I use DS 9.2, it should behave as it has in the past and create the pages according to the image size, and NOT COERCE the page to the default size of the PDFPageSize property, right?
Because, let me be clear, I already have a DS 9.1 app that exhibits the coercion behavior, and it is not usable for my purpose of exporting image pages as PDF. I'm having to use v7 LFSO to get these pages out correctly!
and there is no 9.2 SDK that I see available on the support site, only 9.1.