PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV Mobile 2024 → Viewing PDFs in IOS
Viewing PDFs in IOS
Iniciado por Mike, dez., 14 2016 4:56 PM - 5 respostas
Publicado em dezembro, 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
Membro registado
637 mensagems
Popularité : +36 (36 votes)
Publicado em dezembro, 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
Publicado em dezembro, 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!
Membro registado
637 mensagems
Popularité : +36 (36 votes)
Publicado em dezembro, 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
Publicado em dezembro, 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
Publicado em janeiro, 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