Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #11868 Reply


    I am trying to convert single page pdf of size (width = 3024, height = 2160) to image by using (- (UIdrawPage: (NSInteger)pageIdx size: (CGSize)size) . The expected size after conversion is (width = 12599, height = 8999) i.e four times the actual size . The device crashes when we try to convert pdf of this size. I know this happens because of the outOfMemory. Is there any maximum width and height predefined which can be used as a reference before converting . Or can this be handled more gracefully rather than a crash ? Any help appreciated .

    #11901 Reply

    Dr. Plug

    Hello Ajay!

    Sorry for the delay.

    There is no way we can can handle for the issue because it depends on pages’s resource (such as image file) and resource’s size.
    So, I think that you can make your own default size by pdf file size.
    If you share your code, we would discuss about this issue more.


    PlugPDF Support

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: pdf dimensions
Your information: