FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour preview file PDF
Posts: 37
Joined: Fri Jan 02, 2009 03:12 PM
preview file PDF
Posted: Mon Nov 14, 2011 03:46 PM

Hi,

You can download here:

http://ifile.it/q9ufb7r/quarkpdf.zip

Saludos

Arturo

Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: preview file PDF
Posted: Tue Nov 29, 2011 04:24 AM

Dear Arturo,

Can you preview PDF file without any installation PDF Reader (any program)?

Regards,
Dutch

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 71
Joined: Mon Jan 28, 2008 11:18 AM
Re: preview file PDF
Posted: Tue Nov 29, 2011 11:19 AM

source code ?

Daniel Lopes Filho - Campo Grande,MS,Brasil
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6693) + gtwvw + fw 10.2 + vsx e
fw pcc (ainda nĂŁo usei)
msn : zazibr@hotmail.com
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: preview file PDF
Posted: Tue Nov 29, 2011 03:53 PM
Hello Duch,

A Download-link
http://www.softpedia.com/get/Office-too ... ader.shtml

Cool PDF Reader is Freeware and a Standalone Exe-file
( The fastest and smallest Reader ( only 650 K ). No install needed )
Just include the Exe-file in Your Install-directory.



Best Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: preview file PDF
Posted: Wed Nov 30, 2011 05:37 PM

Dear Uwe,

I would like to open PDF file without execute any program. I just found some program that provide SDK DLL or Active X for open PDF file. It is interesting solution.

http://www.soraxsoft.com

http://www.quickpdflibrary.com

Regards,
Dutch

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 37
Joined: Fri Jan 02, 2009 03:12 PM
Re: preview file PDF
Posted: Wed Nov 30, 2011 08:33 PM

Hi Dutch,

Preview PDF is a new class for FWH, and you can include in your aplication exe,

No requeired Activex, ocx or ole

Now, We are woking in the print pdf

regard

Arturo

Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Re: preview file PDF
Posted: Thu Dec 01, 2011 04:41 AM
Dear Arturo,
arturo tamayo wrote:Hi Dutch,

Preview PDF is a new class for FWH, and you can include in your aplication exe,

No requeired Activex, ocx or ole

Now, We are woking in the print pdf

regard

Arturo

Great news.

Thanks.
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 632
Joined: Thu Jan 19, 2006 10:45 AM
Re: preview file PDF
Posted: Thu Dec 01, 2011 04:39 PM

Buen trabajo Arturo, ya nos iras contando mas cosas.

Saludos



Andrés González desde Mallorca
Posts: 392
Joined: Tue Mar 10, 2009 11:54 AM
Re: preview file PDF
Posted: Fri Dec 02, 2011 08:54 AM

Arturo,

I would like to implement your new class in our app ASAP, do you have a timeline - date of release?

Windows 11 Pro 22H2 22621.1848

Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

Harbour 3.2.0dev (r2008190002)

FWH 23.10 x86
Posts: 990
Joined: Thu Nov 17, 2005 05:49 PM
Re: preview file PDF
Posted: Sat Dec 03, 2011 08:55 PM
Arturo;

What I really need (-really bad-) is a way to print pdfs without having to open for preview. Straight from code:
Code (fw): Select all Collapse
cPdf := "c:\some.pdf"
PrintPdf( cPdf, cPrinter, nCopies )

Just like that.

Any hopes?


Reinaldo.
Posts: 310
Joined: Mon Oct 10, 2005 05:10 AM
Re: preview file PDF
Posted: Sun Dec 04, 2011 05:58 AM

Hi Reinaldo

I use adobe reader for this - I save the location of acrord32.exe for each user

C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe - I also have a function that finds acrord32.exe so when the user updates adobe reader they
can update the path.

I save the path into an array of different parameters that I pass to each prg file
aPrivs[19] := system->adobepath

then in my code I use
bAdobePath := {|cPdf| alltrim(aPrivs[19]) + ' /t' + ' ' + cPdf} // the /t switch makes adobe go the printer or if you
want a preview remove /t switch

then call WinExec(eval(bAdobePath,cPdf))

Colin

Posts: 392
Joined: Tue Mar 10, 2009 11:54 AM
Re: preview file PDF
Posted: Sun Dec 04, 2011 08:16 AM

for printing pdf's and other files without dialogs, you can also use 'ShellExecute' with 'printto' parameter, as described here

viewtopic.php?f=3t=2027hilit=printto,

http://forums.adobe.com/thread/760363
or here

http://delphi.about.com/od/delphitips20 ... rintto.htm

Samples:
ShellExecute( 0, cOperation, cPathFilename, cParameters, cDirectory, nShowCommand )
ShellExecute( 0, 'printto', 'c:\pdf\test.pdf', Chr( 34) + <cPrinter> + Chr( 34), '', 0 )

&&

Windows 11 Pro 22H2 22621.1848

Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

Harbour 3.2.0dev (r2008190002)

FWH 23.10 x86
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: preview file PDF
Posted: Wed Dec 07, 2011 09:16 AM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 990
Joined: Thu Nov 17, 2005 05:49 PM
Re: preview file PDF
Posted: Wed Dec 07, 2011 12:58 PM

I have tried sumatra as well as acrobat. There are problems with both approaches. With Sumatra it all goes well until about the 20th copy when it begins to slow down. I need a way to print 1000 pdfs one after the next without previewing. It seems like the constant calling of sumatra fragments memory in such a way the computer starts to slowdown to a crawl.

I'm now about to experiment with a .dll from Sorax (http://www.soraxsoft.com/index.html) I'm hopeful that this is the solution.

Reinaldo.

Posts: 37
Joined: Fri Jan 02, 2009 03:12 PM
Re: preview file PDF
Posted: Wed Dec 07, 2011 02:37 PM

Hi Antonio,

No, I'm not using SumatraPDF, I'm using mupdf and thirdparty, sumatraPDF also uses mupdf

Can see www.mupdf.com

but has a problem, there is no documentation

Regard,

Arturo