preview file PDF

preview file PDF

Postby arturo tamayo » Mon Nov 14, 2011 3:46 pm

Hi,

You can download here:

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

Saludos

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

Re: preview file PDF

Postby dutch » Tue Nov 29, 2011 4:24 am

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

Re: preview file PDF

Postby zazibr » Tue Nov 29, 2011 11:19 am

source code ?
zazibr
 
Posts: 71
Joined: Mon Jan 28, 2008 11:18 am
Location: Campo Grande,MS, BRASIL

Re: preview file PDF

Postby ukoenig » Tue Nov 29, 2011 3: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.

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
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: preview file PDF

Postby dutch » Wed Nov 30, 2011 5: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 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
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: preview file PDF

Postby arturo tamayo » Wed Nov 30, 2011 8: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
arturo tamayo
 
Posts: 36
Joined: Fri Jan 02, 2009 3:12 pm

Re: preview file PDF

Postby dutch » Thu Dec 01, 2011 4: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 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
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: preview file PDF

Postby Andrés González » Thu Dec 01, 2011 4:39 pm

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

Andrés González desde Mallorca
User avatar
Andrés González
 
Posts: 628
Joined: Thu Jan 19, 2006 10:45 am
Location: Mallorca

Re: preview file PDF

Postby frose » Fri Dec 02, 2011 8: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
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Re: preview file PDF

Postby reinaldocrespo » Sat Dec 03, 2011 8: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: Select all  Expand view

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

Just like that.

Any hopes?


Reinaldo.
User avatar
reinaldocrespo
 
Posts: 979
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Re: preview file PDF

Postby Colin Haig » Sun Dec 04, 2011 5: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
Colin Haig
 
Posts: 310
Joined: Mon Oct 10, 2005 5:10 am

Re: preview file PDF

Postby frose » Sun Dec 04, 2011 8: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=3&t=2027&hilit=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
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Re: preview file PDF

Postby Antonio Linares » Wed Dec 07, 2011 9:16 am

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42086
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: preview file PDF

Postby reinaldocrespo » 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.
User avatar
reinaldocrespo
 
Posts: 979
Joined: Thu Nov 17, 2005 5:49 pm
Location: Fort Lauderdale, FL

Re: preview file PDF

Postby arturo tamayo » Wed Dec 07, 2011 2: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
arturo tamayo
 
Posts: 36
Joined: Fri Jan 02, 2009 3:12 pm

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 69 guests