Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Pdf is not fit to height on certain devices.

More
10 years 1 month ago #10270 by Davide
Hi,
with PdfLayoutView you should use
Code:
m_view.PDFSetView(int def_view);
to change view.
More
10 years 1 month ago #10292 by support
Was you adding the link of uploaded attachment to your post body?

May you try again?
More
10 years 1 month ago - 10 years 1 month ago #10298 by Davide
Hi,
you can't fit your pdf both in height and width, because the ratio between height and width of the pdf are different from the ratio of the screen dimensions.

I suggest you to center the pdf vertically on the reader.
Last edit: 10 years 1 month ago by Davide.
More
10 years 1 month ago #10310 by Davide
Hi,
this is the documentation about layout parameters
Code:
/** * set layout parameters. * @param verts applied duals flag for vertical screen * @param horzs applied duals flag for landscape screen<br/> * Element which set to true mean this cell treat as dual page, otherwise treat as single page.<br/> * For example, book has a cover(first page treat as single) just codes:<br/> * verts = null;<br/> * horzs = new boolean[1];<br/> * horzs[1] = false;<br/> * Pages, those out of array bound:<br/> * in vertical screen: treat as single page(false).<br/> * in landscape screen: treat as dual page(true).<br/> */

To center the pdf vertically you have to set the last parameter (page_align_top ) to false.
Time to create page: 0.388 seconds
Powered by Kunena Forum