PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
Viewing PDFs in IOS
Viewing PDFs in IOS
Started by Mike, Dec., 14 2016 4:56 PM - 5 replies
Connect yourself…
Mike
#1
Posted on December, 14 2016 - 4:56 PM
I am trying to display a PDF in an Image control. PDFs are supported in the Image controls in WinDev for Windows applications but not in WINDEV Mobile for IOS applications.
Does anyone know a way to display them in a WINDEV Mobile application?
Thanks,
Mike
Report
0
0
Eric67
#2
Registered member
637 messages
Popularité : +36 (36 votes)
Posted on December, 14 2016 - 6:43 PM
Hi Mike,
You don't need any image control to view a pdf file in iOS
LanceAppliAssociée("yourpdf.pdf") works perfectly.
Regards,
Eric.
--
Eric DELATTRE
http://www.yoosite.fr
Report
0
0
Mike
#3
Posted on December, 15 2016 - 3:50 PM
Hi Eric,
Thank you for the reply. Performing a shell execute is one way to do it... and have it appear in another application on the iPad. What I was hoping to do was display it on a form in the application and that's why the Image control would have been the perfect way to do it.
Any ideas?
Thanks again for the reply!
Report
0
0
Eric67
#4
Registered member
637 messages
Popularité : +36 (36 votes)
Posted on December, 15 2016 - 7:31 PM
Hi Mike,
Indeed, PDFs are not supported in an image control in Windev Mobile.
But yes in Windev. So, an idea might be to send the pdf via a web service. The pdf would be transformed into an image on the server and then you can get it back as a jpg or any format you want, still through a webservice. GDI+ framework would be useful in the server to load the pdf into an image.
A bit heavy to implement but it should work ...
Eric.
--
Eric DELATTRE
http://www.yoosite.fr
Report
0
0
Mike
#5
Posted on December, 16 2016 - 3:40 PM
Hi Eric,
That is a definite possibility! I was thinking about getting in to the ObjC code (which you can call from WinDev) and hooking it to a form canvas. I could do it in Windows but would have to find out how to do it in ObjC.
But... You just gave me an idea! I can convert the pdf pages to images prior to deployment to the iPad. The PDFs are sent remotely as a binary field. Before placing them in the record as a pdf, I could convert it to an image instead and display the image rather than the PDF. The size may get up there a bit... but... worth a try!
Thanks so much for the input! It's greatly appreciated!
-Mike
Report
0
0
Mike Stewart
#6
Posted on January, 03 2017 - 1:43 AM
Mike
Have you tried opening the PDF using a HTML control rather than an image one? It is a little clumsy looking but might work for you
Report
0
0
→ Go back to WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text