FrançaisEnglishEspañol
PC SOFTForums homeLast messagesOnline repository
PC SOFT
Find...
Perform the searchSearch in...
Newsgroup dedicated to WINDEV (current version), in English
Converting BMP-files to PDF in a Classic HyperFile
Dec., 01st 2009 at 10:38 PM
Stefan Bentvelsen
<gu...st@news.pcsoft.fr>


Hi,
I have a client with a 5GB classic HyperFile (.fic + .ndx + .mmo). The file is filled with .bmp-files (in a binary memo item) and I want to replace these .bmp-files by the equivalent in .pdf-format. I wrote a conversion function for that and it works most of the time OK, but it looks like there is a limit for printing .bmp-files to a pdf. A number of BMP-files result after conversion in an empty pdf-file. The size of one of the .bmp-files is i.e. 2.13 MB, 1274 x 1752 pixels.
In the conversion function I print the .bmp-file via iPrintImage() to a pdf-file and store that file in the binary memo item.
Does anyone knows of a size limit for printing .bmp-files (iPrintImage() !) or has anyone a suggestion to make it possible ?


Replies to this message:
Re: Converting BMP-files to PDF in a Classic HyperFile (SOLVED)
Hi Xavier, I though about a memory-leak too, but could not put my finger on it ! I missed resetting the print-engine with iRaz(), so I will try that a.s.a.p. I let you know the result. Thanks for your ...
From Stefan Bentvelsen - Dec., 03rd 2009 - More »
Re: Converting BMP-files to PDF in a Classic HyperFile (SOLVED)
Hi Stefan, sounds like a kind of memory-leak. Did you convert everything in one procedure? If yes, maybe isolating the conversion bmp->pdf in a separated procedure? How about resetting the print-en ...
From Xavier - Dec., 03rd 2009 - More »
Re: Converting BMP-files to PDF in a Classic HyperFile (SOLVED)
Hi Arie, I first tried to made my current conversion more secure, by using a delay of 3/4 sec instead of 1/2 second en using HSecure(). It didn't help, but I noticed that the first aproximately 500 co ...
From Stefan Bentvelsen - Dec., 02nd 2009 - More »
Re: Converting BMP-files to PDF in a Classic HyperFile
Hi Arie, I will look into it. Thanks.
From Stefan Bentvelsen - Dec., 02nd 2009 - More »
Re: Converting BMP-files to PDF in a Classic HyperFile
I have V4.23, but on the plugin-list there's a IMPDF.DLL mentioned as PFD EXPORT. I checked the Irfanview site (http://www.irfanview.com/plugins.htm ) and it is also mentioned there : IMPDF - (version ...
From Arie Mars - Dec., 02nd 2009 - More »
Re: Converting BMP-files to PDF in a Classic HyperFile
Hi Arie, I tried that too and got the mentioned error, no converted PDF-file. I used IrfanView version 4.25. In the list of plugins is GhostScript mentioned as used for reading PDF-files in IrfanView. ...
From Stefan Bentvelsen - Dec., 02nd 2009 - More »
Re: Converting BMP-files to PDF in a Classic HyperFile
Stefan, I tried this: "c:\program files\irfanview\i_view32.exe" test.bmp /convert=test.pdf on a 2,4mb BMP file. The result is a 90kb PDF file, with some quality loss. But maybe there's an option for t ...
From Arie Mars - Dec., 02nd 2009 - More »
Re: Converting BMP-files to PDF in a Classic HyperFile
Stefan, >I use Irfanview for something like this (bmp to jpg in my case). But PDF is supported as well. >Irfanview can be started, without GUI, via command-line parameters to do the job. (use Ex ...
From Stefan Bentvelsen - Dec., 02nd 2009 - More »
Re: Converting BMP-files to PDF in a Classic HyperFile
Hi Arie, I will look into this. Tanks for your reaction.
From Stefan Bentvelsen - Dec., 02nd 2009 - More »
Re: Converting BMP-files to PDF in a Classic HyperFile
Hi Carlo, if Irfanview won't do, I will try Ghostscript. Thanks for your suggestion.
From Stefan Bentvelsen - Dec., 02nd 2009 - More »
Re: Converting BMP-files to PDF in a Classic HyperFile
Stefan, How about Ghostscript. You can use command lines to do it.
From Carlo Hermus - Dec., 02nd 2009 - More »
Re: Converting BMP-files to PDF in a Classic HyperFile
Stefan, I use Irfanview for something like this (bmp to jpg in my case). But PDF is supported as well. Irfanview can be started, without GUI, via command-line parameters to do the job. (use ExeRun() ) ...
From Arie Mars - Dec., 01st 2009 - More »