- Posts: 3
- Thank you received: 0
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
Wrapper - render without font and exception
- leonardors
- Topic Author
- Offline
- New Member
-
Less
More
10 years 9 months ago #9023
by leonardors
Wrapper - render without font and exception was created by leonardors
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.
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.
- leonardors
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
10 years 9 months ago #9024
by leonardors
Replied by leonardors on topic Wrapper - render without font and exception
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;
}
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;
}
10 years 9 months ago #9025
by support
Replied by support on topic Wrapper - render without font and exception
About missing fonts: have you included cmaps and fdat folders in your project?
- leonardors
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
10 years 9 months ago #9026
by leonardors
Replied by leonardors on topic Wrapper - render without font and exception
Everything was related to the stream
Time to create page: 0.411 seconds