I’m trying to draw tiles of a PDF file using PDFRasterizer and its clip parameter to replace PDFDraw and SetCropBox (since the latter would require me to write-lock the file, which delays other important tasks like searching)
Problem is the Rasterize method crashes immediately, no matter what parameters I pass, even the simplest case I can think of:
We have addressed the problem in the latest unofficial build for iOS, which is now available for download from the iOS download page. Please e-mail support@pdftron.com if you have any troubles.
Yeah the issues seem fixed.
When could we get this in an official release (without the watermark). I need to ship this out pretty fast. We need rasterization for efficient rendering through CATiledLayer
Thanks,
Maarten
On Thursday, 1 August 2013 01:08:21 UTC+2, James wrote:
Hello,
We have addressed the problem in the latest unofficial build for iOS, which is now available for download from the iOS download page. Please e-mail sup...@pdftron.com if you have any troubles.
I would expect this to return a bitmap of pixels that results from stretching the cropBox area into an image with imageWidth width and imageHeight height dimensions.
This works fine if the imageWidth and imageHeight is the entire screen (and the matrix used is calculated from that screen and the page dimensions).
However, once I zoom in (which basically means imageWidth/Height remain the same, but cropBox changes) it seems I need to adjust the coordinate matrix further (aside of the already calculated page transform that fits the page on the viewport) so it scales the pixels, in order to make the cropBox stretch to the image bounds.
This is strange to me, and causes some mathematical work. There is nothing wrong with the way this interface works? If so can you advise me how I’d best deal with this?