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

TOPIC:

Wrapper - render without font and exception 8 years 10 months ago #9023

  • leonardors
  • leonardors's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
Hello,

I wrapper some features of Radaee, creating methods that create images only, removing the zoom of the components and all other features. I did the codes, but to run some files had different results:

- When running a file without embedded fonts, the render shows the PDF without the sources.
- When running other files, one execption is generated.
- Other files, functions normally.

I have attached the project from mistakes.


Thank you.

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

Wrapper - render without font and exception 8 years 10 months ago #9024

  • leonardors
  • leonardors's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
I found error!!
In PdfRadaeeMemoryStreamWrapper

Incorrect code
-(bool)seek:(unsigned long long)pos
{
int nPos = (int)pos;
if (pos > [self position] || nPos < 0){
return NO;
}
position = nPos;
return YES;
}

Correct code
-(bool)seek:(unsigned long long)pos
{
int nPos = (int)pos;
if (pos > [self length] || nPos < 0){
return NO;
}
position = nPos;
return YES;
}

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

Wrapper - render without font and exception 8 years 10 months ago #9025

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
About missing fonts: have you included cmaps and fdat folders in your project?

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

Wrapper - render without font and exception 8 years 10 months ago #9026

  • leonardors
  • leonardors's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
Everything was related to the stream

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

  • Page:
  • 1
Powered by Kunena Forum