Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, June 14, 2007 12:55:47 AM(UTC)
mfreista

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

 

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, June 14, 2007 9:39:58 AM(UTC)

GregR  
GregR

Groups: Registered, Tech Support, Administrators
Posts: 766


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:33:31 AM(UTC)
mfreista

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:22:45 PM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

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.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.183 seconds.