Announcement

Collapse
No announcement yet.

Changing view mode on orientation change (Android)

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Changing view mode on orientation change (Android)


    Hello,
    I'm interested in the Embedded PDF SDK for Android.
    Is it possible to change the view mode of pdf page to show 2 pages in landscape and one page in portrait mode?

    Thanks.

  • #2
    Dear Pauly,

    Yes, this is possible. The demos that come with the evaluation package renders PDF pages to bitmap. You can actually render two PDF pages to a single bitmap to achieve what you want or you can render two bitmap and place them side by side in your view.

    When you call FS_Bitmap_Create make the bitmap the size of the two pages together. When you call FPDF_RenderPage_Start make sure you change the start and size so that the first page renders on the left side of the bitmap and the second page renders on the right side.

    Sincerely,
    Huy

    Comment

    Working...
    X