Android Question PDFjetB4A library Empty pdf

PacoViv

Member
Licensed User
Hello,
This is my first post, sorry for any inconvenience.

It's about the PDFjetB4A library

When I run the PDFjet-Simple example it creates a pdf file in my sdcard0 but that file has 0 bytes and can not be opened.


I downloaded the
PDFjetB4A-library-files-v1.10.zip

and the
PDFjet-SimpleExample.zip
from this post

https://www.b4x.com/android/forum/threads/pdfjetb4a.37843/

I had to add to the manifest the line:
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo")
As sugested by the B4A IDE

No errors, just the pdf created is empty

Any help?

Thanks in advance.


My B4A version 5.02(1)
 
Last edited:

PacoViv

Member
Licensed User
And also I see (adding msgboxs) that the program does not arrive to the line
PDFTextLine.SetPosition(10, 10+PDFFont1.GetHeight)

But no error shown.
 
Upvote 0

PacoViv

Member
Licensed User
Thank you Erel.
I'm studying that library.

I'm testing with b4abridge on a phone with Android 4.1.2
I'm purchasing a new phone.
I guess is not enough to change something like
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="23"/> to the manifest instead of
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="14"/> (that I have now) and the physical phone must have Android 4.4+

Thanks again.
 
Upvote 0
Top