preview file PDF

arturo tamayo
Posts: 26
Joined: Fri Jan 02, 2009 3:12 pm

preview file PDF

Post by arturo tamayo »

Hi,

You can download here:

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

Saludos

Arturo
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: preview file PDF

Post by dutch »

Dear Arturo,

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

Regards,
Dutch
Regards,
Dutch

FWH 19.01 / 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)
zazibr
Posts: 71
Joined: Mon Jan 28, 2008 11:18 am
Location: Campo Grande,MS, BRASIL

Re: preview file PDF

Post by zazibr »

source code ?
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: preview file PDF

Post by ukoenig »

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.

Image

Best Regards
Uwe :lol:
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.
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: preview file PDF

Post by dutch »

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 19.01 / 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)
arturo tamayo
Posts: 26
Joined: Fri Jan 02, 2009 3:12 pm

Re: preview file PDF

Post by arturo tamayo »

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
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: preview file PDF

Post by dutch »

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 19.01 / 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)
User avatar
Andrés González
Posts: 625
Joined: Thu Jan 19, 2006 10:45 am
Location: Mallorca

Re: preview file PDF

Post by Andrés González »

Buen trabajo Arturo, ya nos iras contando mas cosas.
Saludos

Andrés González desde Mallorca
User avatar
frose
Posts: 327
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Gütersloh
Contact:

Re: preview file PDF

Post by frose »

Arturo,

I would like to implement your new class in our app ASAP, do you have a timeline - date of release?
User avatar
reinaldocrespo
Posts: 918
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Re: preview file PDF

Post by reinaldocrespo »

Arturo;

What I really need (-really bad-) is a way to print pdfs without having to open for preview. Straight from code:

Code: Select all

cPdf := "c:\some.pdf"
PrintPdf( cPdf, cPrinter, nCopies )
 
Just like that.

Any hopes?


Reinaldo.
Colin Haig
Posts: 310
Joined: Mon Oct 10, 2005 5:10 am

Re: preview file PDF

Post by Colin Haig »

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
User avatar
frose
Posts: 327
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Gütersloh
Contact:

Re: preview file PDF

Post by frose »

for printing pdf's and other files without dialogs, you can also use 'ShellExecute' with 'printto' parameter, as described here
http://forums.fivetechsupport.com/viewt ... it=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 )
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: preview file PDF

Post by Antonio Linares »

It seems as Arturo is using free SumatraPDF:

http://code.google.com/p/sumatrapdf/

http://blog.kowalczyk.info/software/sum ... eader.html

Image

Good finding, Arturo
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
reinaldocrespo
Posts: 918
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Re: preview file PDF

Post by reinaldocrespo »

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.
arturo tamayo
Posts: 26
Joined: Fri Jan 02, 2009 3:12 pm

Re: preview file PDF

Post by arturo tamayo »

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
Post Reply