Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about iOS development and PDF

PDF page truncated

More
IP: 192.168.0.70 12 years 4 months ago #4490 by klee
PDF page truncated was created by klee
I'm using iospdfviewer1.7.2.

The attached help_IOS_1.7.pdf file is truncated last lines of this document.

Why?
More
IP: 192.168.0.70 12 years 4 months ago #4492 by stronglee
Replied by stronglee on topic PDF page truncated
hi,klee:

Could you step into PDFOpen function in last of this help_IOS_1.7.pdf said.
In Create a method to open the PDF. Find [m_pdf PDFOpen:pdfFullpath], and make modified as follow

if([iosversion integerValue]>7)
{
m_view = [[PDFView alloc] initWithFrame:CGRectMake(0, 0, rect.size.width, rect.size.height)];
}
else
{
//modified here. do not use rect.size.height-20-hi.because in ios7 sdk navigationController.navigationBar.bounds.size.height's value is zero ,if you want use this correct in ios7 below,there should minus navigationBar's height
m_view = [[PDFView alloc] initWithFrame:CGRectMake(0, 0, rect.size.width, rect.size.height-20-44)];
}
Time to create page: 0.392 seconds
Powered by Kunena Forum