GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV Mobile 2024
→
Viewing PDFs in IOS
Viewing PDFs in IOS
Iniciado por Mike, dez., 14 2016 4:56 PM - 5 respostas
Conecte-se…
Mike
#1
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
Denunciar
0
0
Eric67
#2
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
Denunciar
0
0
Mike
#3
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!
Denunciar
0
0
Eric67
#4
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
Denunciar
0
0
Mike
#5
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
Denunciar
0
0
Mike Stewart
#6
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
Denunciar
0
0
→ Voltar para WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto