Alaska Software Inc. - Quickest way to display a pdf.
Username: Password:
AuthorTopic: Quickest way to display a pdf.
Claudio Driussi Quickest way to display a pdf.
on Mon, 17 Sep 2018 19:47:53 +0200
I have to display the first page of a some pdf files, the file
change when I change record in a browse.

Which is the quickest way to do this?

I found the ImageMagic utility to generate jpg files
from pdf and I can display jpg, but maybe there are some
smarter way.

Thanks
Claudio
Edgar Borger Re: Quickest way to display a pdf.
on Tue, 18 Sep 2018 21:55:04 -0300
Please try ou XbpPDF class, a demo is available at
http://www.borger.com.br/softsupply

very simple to use and fast.

Regards,
Edgar


Em 17/09/2018 14:47, Claudio Driussi escreveu:
> I have to display the first page of a some pdf files, the file
> change when I change record in a browse.
>
> Which is the quickest way to do this?
>
> I found the ImageMagic utility to generate jpg files
> from pdf and I can display jpg, but maybe there are some
> smarter way.
>
> Thanks
> Claudio
Claudio Driussi Re: Quickest way to display a pdf.
on Thu, 20 Sep 2018 22:14:12 +0200
Il 19/09/2018 02:55, Edgar Borger ha scritto:
> Please try ou XbpPDF class, a demo is available at
> http://www.borger.com.br/softsupply

It's a little bit an overkill, thanks anyway

Claudio

> 
> very simple to use and fast.
> 
> Regards,
> Edgar
> 
> 
> Em 17/09/2018 14:47, Claudio Driussi escreveu:
>> I have to display the first page of a some pdf files, the file
>> change when I change record in a browse.
>>
>> Which is the quickest way to do this?
>>
>> I found the ImageMagic utility to generate jpg files
>> from pdf and I can display jpg, but maybe there are some
>> smarter way.
>>
>> Thanks
>> Claudio
Zupan Miran Re: Quickest way to display a pdf.
on Wed, 19 Sep 2018 08:41:33 +0200
Maybe you can try sample on

c:\Users\username\Documents\Xbase++\source\samples\activex\acrobat
and in your browse use "keyboard"

//*** browse ***
oBrowse:keyboard := {|nKey| IIF( nKey == xbeK_UP   ,
{||Show_PDF(oControl,oDlg:oPane2),;setAppFocus(oDlg:oPane1),setAppFocus(oBrowse)}, NIL ),;
                            IIF( nKey == xbeK_DOWN , {||Show_PDF(oControl,oDlg:oPane2),
setAppFocus(oDlg:oPane1),setAppFocus(oBrowse)}, NIL ),;
                            IIF( nKey == xbeK_PGUP , ;
Show_PDF(oBrowse,oControl,oDlg:oPane1,oDlg:oPane2,oDlg), NIL ),;
                            IIF( nKey == xbeK_PGDN ,;
Show_PDF(oBrowse,oControl,oDlg:oPane1,oDlg:oPane2,oDlg), NIL ),;
                            IIF( nKey == xbeK_ALT_D, Tipka_T2(oBrowse,oDlg)    , NIL ) }



STATIC FUNCTION Show_PDF(oControl,oPane2)
   tdSay( 1.3,1.5,"&pot_sdok"+fieldget(fieldpos("ime_dokum"))+".PDF",oPane2,,"l",;
        {tdWHI,tdPGY},"11.Arial CE Bold")

   cFileName :="&pot_sdok"+fieldget(fieldpos("ime_dokum"))+".PDF"
   oControl:loadFile( cFileName )
RETURN nil

Best regards
Miran Zupan

---
Ta e-pošta je bila pregledana z Avast protivirusnim programom.
https://www.avast.com/antivirus
Claudio Driussi Re: Quickest way to display a pdf.
on Thu, 20 Sep 2018 22:10:51 +0200
Il 19/09/2018 08:41, Zupan Miran ha scritto:
> Maybe you can try sample on
> 
> c:\Users\username\Documents\Xbase++\source\samples\activex\acrobat
> and in your browse use "keyboard"


Ok, I will try
Thanks

> //*** browse ***
> oBrowse:keyboard := {|nKey| IIF( nKey == xbeK_UP   , 
> {||Show_PDF(oControl,oDlg:oPane2),;setAppFocus(oDlg:oPane1),setAppFocus(oBrowse)}, 
> NIL ),;
>                             IIF( nKey == xbeK_DOWN , 
> {||Show_PDF(oControl,oDlg:oPane2), 
> setAppFocus(oDlg:oPane1),setAppFocus(oBrowse)}, NIL ),;
>                             IIF( nKey == xbeK_PGUP , ; 
> Show_PDF(oBrowse,oControl,oDlg:oPane1,oDlg:oPane2,oDlg), NIL ),;
>                             IIF( nKey == xbeK_PGDN ,; 
> Show_PDF(oBrowse,oControl,oDlg:oPane1,oDlg:oPane2,oDlg), NIL ),;
>                             IIF( nKey == xbeK_ALT_D, 
> Tipka_T2(oBrowse,oDlg)    , NIL ) }
> 
> 
> 
> STATIC FUNCTION Show_PDF(oControl,oPane2)
>    tdSay( 
> 1.3,1.5,"&pot_sdok"+fieldget(fieldpos("ime_dokum"))+".PDF",oPane2,,"l",;
>         {tdWHI,tdPGY},"11.Arial CE Bold")
> 
>    cFileName :="&pot_sdok"+fieldget(fieldpos("ime_dokum"))+".PDF"
>    oControl:loadFile( cFileName )
> RETURN nil
> 
> Best regards
> Miran Zupan
> 
> ---
> Ta e-pošta je bila pregledana z Avast protivirusnim programom.
> https://www.avast.com/antivirus
>
Carlos a Beling Re: Quickest way to display a pdf.
on Thu, 20 Sep 2018 09:22:23 -0300
Hi. Good morning.
Could the parameter "Open" of theAPI 'ShellExecuteA' from 'Shell32.dll' 
to be useful for it?
<start>
open
Opens the item specified by the lpFile parameter. The item can be a file 
or folder.
</start>


Fraternally
Beling

Em 17/09/2018 14:47, Claudio Driussi escreveu:
> I have to display the first page of a some pdf files, the file
> change when I change record in a browse.
>
> Which is the quickest way to do this?
>
> I found the ImageMagic utility to generate jpg files
> from pdf and I can display jpg, but maybe there are some
> smarter way.
>
> Thanks
> Claudio
Claudio Driussi Re: Quickest way to display a pdf.
on Thu, 20 Sep 2018 22:12:06 +0200
Il 20/09/2018 14:22, Carlos a Beling ha scritto:
> Hi. Good morning.
> Could the parameter "Open" of theAPI 'ShellExecuteA' from 'Shell32.dll' 
> to be useful for it?

Yes is simple, but I would like something embedded into Xpp app.

> <start>
> open
> Opens the item specified by the lpFile parameter. The item can be a file 
> or folder.
> </start>
> 
> 
> Fraternally
> Beling
> 
> Em 17/09/2018 14:47, Claudio Driussi escreveu:
>> I have to display the first page of a some pdf files, the file
>> change when I change record in a browse.
>>
>> Which is the quickest way to do this?
>>
>> I found the ImageMagic utility to generate jpg files
>> from pdf and I can display jpg, but maybe there are some
>> smarter way.
>>
>> Thanks
>> Claudio
Jack DuijfRe: Quickest way to display a pdf.
on Mon, 24 Sep 2018 13:59:28 +0200
Hello,

Look at the sample C:\Users\your-name\Documents\Xbase++\source\samples\activex\webbrowser
You can also browse a PDF document.

Regards
Jack Duijf

-------------------------------------------------------------
Also a member off the XXP (http://www.xxp.nl)