Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC:

PDF page truncated 10 years 5 months ago #4490

  • klee
  • klee's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
I'm using iospdfviewer1.7.2.

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

Why?
Attachments:

Please Log in or Create an account to join the conversation.

PDF page truncated 10 years 5 months ago #4492

  • stronglee
  • stronglee's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 93
  • Thank you received: 2
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)];
}

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum