iOS Question iOS - Protected PDF`s, in B4xPages

james_sgp

Active Member
Licensed User
Longtime User
I'm going insane trying to get this working, I just want to open a protected PDF (password to view) and have it zoomable; but i can't get anything to work.

I`ve tried all these and non-work to open the PDF and allow it to be zoomable:

1. Open PDF directly in WebView : gives error loading because it doesn't know the password!
2. Open PDF in a Canvas within a ScrollView : PDF opens but isn`t zoomable
3. Open PDF in a Cavas within a WebView : PDF opens but then disappears
4. Open PDF using PDFkit : Error 'not initialised' [nativeObjectPDFView.SetField ("document", nativeObjectPDFDocument)]
5. Open PDF in Panel : PDF opens but isn`t zoomable

I have asked various questions about some of the above items and have tried the suggested solutions but none of them work! I have attached all the tests I`ve tried...

I would really, really appreciate anyone that can help me get this 'simple' operation working (by any method). I'm using PDFium on the Android version of the app and it's all working perfectly.


Thanks in advance, James
 

Attachments

  • PDF Test 1.zip
    169.2 KB · Views: 171
  • PDF Test 2.zip
    169.9 KB · Views: 151
  • PDF Test 3.zip
    111.3 KB · Views: 154
  • PDF Test 4.zip
    169.4 KB · Views: 159
  • PDF Text 5.zip
    3.1 KB · Views: 156
  • SD-124-1page.pdf
    376.4 KB · Views: 158

Erel

B4X founder
Staff member
Licensed User
Longtime User
1683006975353.png


 
Upvote 0

james_sgp

Active Member
Licensed User
Longtime User
@Erel....thank you...you are amazing! Looking at the code it looks way simpler than the code I was using with the PDFKit.
 
Upvote 0
Top