Android Question Dim myPDF as pdfdocument - won't compile

Nick Thomas

New Member
Licensed User
When I enter code...

Dim mypdf as pdfdocument

I get these compiler errors...

B4A Version: 7.80
Parsing code. Error
Error parsing program.
Error description: Unknown type: pdfdocument
Are you missing a library reference?
Error occurred on line: 32 (Main)
Dim mypdf As pdfdocument

My manifest is set to...

<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="23"/>

I even re-installed B4A. I'm at a complete loss. HELP!
 
Last edited:

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

Nick Thomas

New Member
Licensed User
Thank you.
Yes, copying the PRINTING files from the library zip to the libraries folder and selecting the PRINTING library works fine!

Because I didn't want to print from the phone I didn't select the library.

For future reference, how do I know when I should include additional library files and which ones? ANSWER:? If I get the "missing library" comment??

How should I have known that "pdfdocument" was included in the "PRINTING" library?
How do I identify which library to add/update?

Many thanks.....
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Last edited:
Upvote 0

Nick Thomas

New Member
Licensed User
Many thanks DonManfred!

I think that maybe when I searched for PDFDOCUMENT (many times) I probably selected one of the "suggestions" from the drop-down box rather than just hitting <enter>.

I do now see the OBJECT REFERENCE and understand what you said - It makes things a LOT clearer.

This advice on how to better use the forum will help me a LOT going forwards.

Thanks again! Nick.
 
Upvote 0
Top