This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, June 14, 2007 12:50:47 AM(UTC)
Groups: Registered
Posts: 3
Hi,
A really urgent question:
I'm using Leadtools Document Imaging 14.5 and VB 6.0
How can it be done, that some JPG - Files are converted to only one PDF - File in such way, that on each page of the PDF one JPG is placed?
Are there some examples or may I ask you to give me some code snippets, which would help.
Thanks a lot, in advance.
Markus
#2
Posted
:
Thursday, June 14, 2007 9:34:58 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 764
What LEADTOOLS interface (API, COM, etc.) are you using?
Could you explain in more detail what it is you're trying to accomplish?
Each call of Save will create just one file (or page in a multipage file), so that is why each JPG will have it's own page in your PDF. If you want more than one JPEG (or any other file you load) on the same page, you will need to combine the multiple images into one image before you save it.
#3
Posted
:
Monday, July 2, 2007 3:28:31 AM(UTC)
Groups: Registered
Posts: 3
Hi,
I'm using COM interface.
Now I have finished the above written issue, but I'm worring about the quality of the pdf - output (it is b/w and bad quality). Because the quality of the PDF - Output of the JPG - Files should be nearly the same like the quality of the original JPG - File, I use the following commands for converting:
RasterIO.Load LEADRasterView1.Raster, temppath & line(0), 0, 1, -1
RasterIO.Save LEADRasterView1.Raster, temppath & "100K346" & line(1) & line(2) & timestamp & ".PDF", FILE_RAS_PDF_G4, 1, 2, SAVE_APPEND
How could it be done that the quality is better (color - pdf output and higher resolution)?
Thank you a lot,
Markus
#4
Posted
:
Monday, July 2, 2007 11:17:45 PM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Hello,
To improve the quality of the result file, you need to do the following:
(1) Load the JPG image on high resolution. You can control the resolution of the image by changing the Raster.BitmapXRes and BitmapYRes properties as follows:
--------------------------------
LEADRasterView1.Raster.BitmapXRes = 300
LEADRasterView1.Raster.BitmapYRes = 600
--------------------------------
(2) After loading the JPEG image (and before saving to PDF format), set the ILEADRasterIO.PDFSaveUseDPI property to True to use the bitmap's DPI in calculating page dimensions when saving a PDF file.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.