- Posts: 814
- Thank you received: 65
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.
10 years 1 month ago #10270
by Davide
Pdf is not fit to height on certain devices. was created by Davide
Hi,
with PdfLayoutView you should use
to change view.
with PdfLayoutView you should use
Code:
m_view.PDFSetView(int def_view);
10 years 1 month ago #10292
by support
Replied by support on topic Pdf is not fit to height on certain devices.
Was you adding the link of uploaded attachment to your post body?
May you try again?
May you try again?
10 years 1 month ago - 10 years 1 month ago #10298
by Davide
Replied by Davide on topic Pdf is not fit to height on certain devices.
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.
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.
10 years 1 month ago #10310
by Davide
Replied by Davide on topic Pdf is not fit to height on certain devices.
Hi,
this is the documentation about layout parameters
To center the pdf vertically you have to set the last parameter (page_align_top ) to false.
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