Page 1 of 2

preview file PDF

Posted: Mon Nov 14, 2011 3:46 pm
by arturo tamayo
Hi,

You can download here:

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

Saludos

Arturo

Re: preview file PDF

Posted: Tue Nov 29, 2011 4:24 am
by dutch
Dear Arturo,

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

Regards,
Dutch

Re: preview file PDF

Posted: Tue Nov 29, 2011 11:19 am
by zazibr
source code ?

Re: preview file PDF

Posted: Tue Nov 29, 2011 3:53 pm
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:

Re: preview file PDF

Posted: Wed Nov 30, 2011 5:37 pm
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

Re: preview file PDF

Posted: Wed Nov 30, 2011 8:33 pm
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

Re: preview file PDF

Posted: Thu Dec 01, 2011 4:41 am
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.

Re: preview file PDF

Posted: Thu Dec 01, 2011 4:39 pm
by Andrés González
Buen trabajo Arturo, ya nos iras contando mas cosas.

Re: preview file PDF

Posted: Fri Dec 02, 2011 8:54 am
by frose
Arturo,

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

Re: preview file PDF

Posted: Sat Dec 03, 2011 8:55 pm
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.

Re: preview file PDF

Posted: Sun Dec 04, 2011 5:58 am
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

Re: preview file PDF

Posted: Sun Dec 04, 2011 8:16 am
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 )

Re: preview file PDF

Posted: Wed Dec 07, 2011 9:16 am
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

Re: preview file PDF

Posted: Wed Dec 07, 2011 12:58 pm
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.

Re: preview file PDF

Posted: Wed Dec 07, 2011 2:37 pm
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