JPG > PDF and viceversa
- MarcoBoschi
- Posts: 925
- Joined: Thu Nov 17, 2005 11:08 am
- Location: Padova - Italy
- Contact:
JPG > PDF and viceversa
Hi,
I'm looking for a way to convert from pdf to jpg and viceversa.
An alternative to pdf creator
many thanks
I'm looking for a way to convert from pdf to jpg and viceversa.
An alternative to pdf creator
many thanks
Marco Boschi
info@marcoboschi.it
info@marcoboschi.it
Re: JPG > PDF and viceversa
Marco,
PDF to JPG
( not a full version, I will still look for another one ! )
http://download.cnet.com/Office-Convert ... 00900.html
A freeware ( 3. download-button ) :
http://www.pdfmate.com/download.html
JPG To PDF Multiple files with different format
( Freeware ! )
http://www.compulsivecode.com
Best Regards
Uwe
PDF to JPG
( not a full version, I will still look for another one ! )
http://download.cnet.com/Office-Convert ... 00900.html
A freeware ( 3. download-button ) :
http://www.pdfmate.com/download.html
JPG To PDF Multiple files with different format
( Freeware ! )
http://www.compulsivecode.com
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.
i work with FW.
If you have any questions about special functions, maybe i can help.
- MarcoBoschi
- Posts: 925
- Joined: Thu Nov 17, 2005 11:08 am
- Location: Padova - Italy
- Contact:
Re: JPG > PDF and viceversa
Hello Marco,
what for do you need the jpg-files.
I made a solution to preview pdf files for a docViewer. There I open the pdf and make a screen shot.
If you are interested please let me know.
Best regards,
Otto
http://www.atzwanger-software.com/fw/pd ... iewer.html
what for do you need the jpg-files.
I made a solution to preview pdf files for a docViewer. There I open the pdf and make a screen shot.
If you are interested please let me know.
Best regards,
Otto
http://www.atzwanger-software.com/fw/pd ... iewer.html
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
********************************************************************
Re: JPG > PDF and viceversa
Uwe,
Can you offer me convert pdf to rtf file in commandline. ?
Thanks
Can you offer me convert pdf to rtf file in commandline. ?
Thanks
Regards,
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
Re: JPG > PDF and viceversa
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.
i work with FW.
If you have any questions about special functions, maybe i can help.
Re: JPG > PDF and viceversa
Hello,
I have seen this code in the alaska forum.
Maybe this is code can help you.
Best regards,
Otto
I have seen this code in the alaska forum.
Maybe this is code can help you.
Best regards,
Otto
Code: Select all
function pdftest()
******************************************************************
local oStatic1,oBitmap,nPageID,nPages,abuffer := {}
//TQuickPdf():Register(QUICKPDF_KEY) // wird beim Programmstart nur einmal gemacht !!!
cFile := "laststrokes.pdf"
WITH OBJECT ( oPdf := TQuickPdf():New() )
nPageID := .:LoadFromFile(cFile)
nPages := .:PageCount()
for x := 1 to nPages
aadd(aBuffer,substr(.:RenderPagetoString(96,x,0),15))
next x
.:Destroy()
END WITH
@ 0,0 DCSTATIC TYPE XBPSTATIC_TYPE_RECESSEDBOX SIZE 100,50 OBJECT oStatic1
oBitmap := xbpBitmap():new():create()
oBitmap:setbuffer(aBuffer[1]) // nur erste Seite für Test
@ .1,.1 DCSTATIC TYPE XBPSTATIC_TYPE_BITMAP SIZE 100,50 CAPTION oBitmap OBJECT oBitmap1 PARENT oStatic1
dcread gui fit
return nil
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
********************************************************************
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: JPG > PDF and viceversa
Seems to be based on this one:
http://www.quickpdflibrary.com/free/lite.php
Not available for Linux and OSX, only for Windows
We need to keep searching...
http://www.quickpdflibrary.com/free/lite.php
Not available for Linux and OSX, only for Windows
We need to keep searching...
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: JPG > PDF and viceversa
FWH has already implemented coversion of jpeg to pdf natively without the need of any external library. But the code is static inside \fwh\source\prv2pdf.prg.MarcoBoschi wrote:Hi,
I'm looking for a way to convert from pdf to jpg and viceversa.
An alternative to pdf creator
many thanks
You can remove the static declaration of FWPDF class in the above program and use it in your applications.
example
Code: Select all
oPdf := FWPDF():New( cNewPdfFile )
oJpgBuf := MemoRead( <jpegfile> )
oPdf:nPage := 1
oPdf:WritePage( oJpgBuf )
oPdf:Close()
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: JPG > PDF and viceversa
Hello,
I tested latest preview posted by Master Antonio at FiveDbu, and the pdfs generated by native FWH are too big in size (one page, almost 4 mb).
I don´t have Office 2007.
Also, if I try to generate a pdf > 100 pages, it produces an hb_out.log at Harbour.
I tested latest preview posted by Master Antonio at FiveDbu, and the pdfs generated by native FWH are too big in size (one page, almost 4 mb).
I don´t have Office 2007.
Also, if I try to generate a pdf > 100 pages, it produces an hb_out.log at Harbour.
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: JPG > PDF and viceversa
Elvira,
Please post the hb_out.log contents here, thanksAlso, if I try to generate a pdf > 100 pages, it produces an hb_out.log at Harbour.
Re: JPG > PDF and viceversa
Sure,
Code: Select all
Application Internal Error - C:\Users\Elvira\Desktop\0956_2013\fivedbu_20130909\fivedbu.exe
Terminated at: 2013.09.17 12:25:20
Unrecoverable error 9006: hb_xgrab can't allocate memory
Called from DIBTOSTR(0)
Called from EMF2JPEG(76) in .\source\function\PRV2PDF.PRG
Called from FWPDF:ADDMETA(141) in .\source\function\PRV2PDF.PRG
Called from (b)FWSAVEPREVIEWTOPDF(38) in .\source\function\PRV2PDF.PRG
Called from AEVAL(0)
Called from FWSAVEPREVIEWTOPDF(38) in .\source\function\PRV2PDF.PRG
Called from (b)TPREVIEW_BUILDBUTTONBAR(342) in .\source\classes\RPREVIEW.PRG
Called from TBTNBMP:CLICK(471) in .\source\classes\BTNBMP.PRG
Called from TBTNBMP:LBUTTONUP(662) in .\source\classes\BTNBMP.PRG
Called from TCONTROL:HANDLEEVENT(1719) in .\source\classes\CONTROL.PRG
Called from TBTNBMP:HANDLEEVENT(1465) in .\source\classes\BTNBMP.PRG
Called from _FWH(3183) in .\source\classes\WINDOW.PRG
Called from SYSREFRESH(0)
Called from STOPUNTIL(60) in .\source\function\MSGRUN.PRG
Called from TPREVIEW:ACTIVATE(143) in .\source\classes\RPREVIEW.PRG
Called from RPREVIEW(1759) in .\source\classes\RPREVIEW.PRG
Called from (b)TREPORT_NEW(170) in .\source\classes\REPORT.PRG
Called from TREPORT:ACTIVATE(850) in .\source\classes\REPORT.PRG
Called from TXBROWSE:REPORT(7132) in .\source\classes\XBROWSE.PRG
Called from (b)OPEN(290) in C:\fwteam\samples\fivedbu.prg
Called from TBTNBMP:CLICK(471) in .\source\classes\BTNBMP.PRG
Called from TBTNBMP:LBUTTONUP(662) in .\source\classes\BTNBMP.PRG
Called from TCONTROL:HANDLEEVENT(1719) in .\source\classes\CONTROL.PRG
Called from TBTNBMP:HANDLEEVENT(1465) in .\source\classes\BTNBMP.PRG
Called from _FWH(3183) in .\source\classes\WINDOW.PRG
Called from WINRUN(0)
Called from TMDIFRAME:ACTIVATE(996) in .\source\classes\WINDOW.PRG
Called from MAIN(57) in C:\fwteam\samples\fivedbu.prg
------------------------------------------------------------------------
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: JPG > PDF and viceversa
There was a memory leak bug in DibToStr(), thanks to Rao that saw it
Fixed and testing, we will publish a new build in a day or two. This was only appearing on a large print preview.
This is the fix in source/winapi/dib.c:
Fixed and testing, we will publish a new build in a day or two. This was only appearing on a large print preview.
This is the fix in source/winapi/dib.c:
Code: Select all
HB_FUNC( DIBTOSTR ) // ( hDib ) --> lSuccess
{
long lSize;
char * pDib;
#ifndef _WIN64
pDib = DibToStr( ( HGLOBAL ) hb_parnl( 1 ), &lSize );
#else
pDib = DibToStr( ( HGLOBAL ) hb_parnll( 1 ), &lSize );
#endif
hb_retclen( pDib, lSize );
hb_xfree( ( void * ) pDib ); // Here !!!
}
- Badara Thiam
- Posts: 160
- Joined: Tue Oct 18, 2005 10:21 am
- Location: France
- Contact:
Re: JPG > PDF and viceversa
Antonio,
Are not others ways to create FWH PDFs without Office, and without this enormous capacity needed for one page, 4 mb ?
I use a virtual printer named PDFill Pdf Writer, who produce my pdf manuals, with for example 707 pages for only 9307 ko.
Inside there is a lot of png images of my soft. This product work perfect, i use it since a long time.
If you want to see, the manual is here : http://www.icim.fr/pdf/icim_facturation ... erence.pdf
I think it would be good if the users of my softs could print directly on pdf without virtual printer.
It is the only reason who do me change and let down PDFill Pdf Writer, because it is the better product
than i know to make PDFs with no limited numbers of pages, in a extraordinary little file size.
Are not others ways to create FWH PDFs without Office, and without this enormous capacity needed for one page, 4 mb ?
I use a virtual printer named PDFill Pdf Writer, who produce my pdf manuals, with for example 707 pages for only 9307 ko.
Inside there is a lot of png images of my soft. This product work perfect, i use it since a long time.
If you want to see, the manual is here : http://www.icim.fr/pdf/icim_facturation ... erence.pdf
I think it would be good if the users of my softs could print directly on pdf without virtual printer.
It is the only reason who do me change and let down PDFill Pdf Writer, because it is the better product
than i know to make PDFs with no limited numbers of pages, in a extraordinary little file size.
Badara Thiam
http://www.icim.fr
http://www.icim.fr
-
- Posts: 824
- Joined: Thu Oct 13, 2005 7:39 am
- Location: Germany
Re: JPG > PDF and viceversa
Badara,
you have 3 possibilities to create a pdf file.
1: using word (if installed)
2: using an printer driver that creates pdf.
3: you can use HaruPdf lib that comes with (x)harbour. With this lib you can create pdf directly from your app. There is good sample in the contrib folder of (x)harbour.
you have 3 possibilities to create a pdf file.
1: using word (if installed)
2: using an printer driver that creates pdf.
3: you can use HaruPdf lib that comes with (x)harbour. With this lib you can create pdf directly from your app. There is good sample in the contrib folder of (x)harbour.
kind regards
Stefan
Stefan