Wrapper - render without font and exception - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC: Wrapper - render without font and exception

Wrapper - render without font and exception 3 years 5 months ago #9023

  • leonardors
  • leonardors's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • 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 3 years 5 months ago #9024

  • leonardors
  • leonardors's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • 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 3 years 5 months ago #9025

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 571
  • Karma: 6
  • Thank you received: 46
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 3 years 5 months ago #9026

  • leonardors
  • leonardors's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • 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