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, January 13, 2011 5:13:36 PM(UTC)
trongcuong1710

Groups: Registered
Posts: 3


Hi Supporter!!
I'm a newbier, and i'm researching about leedtools. I want to develope a project that convert jpeg2000 to pdf with resolution at 600 dpi (lossless convert). I'm wondering which class must i use to open and draw picture to pdf file and how can i set resolution when create a new pdf file.
 

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, January 13, 2011 5:24:29 PM(UTC)
trongcuong1710

Groups: Registered
Posts: 3


i forgot to tell, i'm using Leadtools version 17
 
#3 Posted : Sunday, January 16, 2011 1:43:59 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

The details depend on the programming interface (C DLL, C++ class library, .Net classes, etc.) that you use.

For example, if you are using LEADTOOLS .Net programming interface, you can do this as follows:
1. Load the JPEG2000 image to a RasterImage object by using the RasterCodecs.Load() method.
2. If the resolution of the JPEG2000 image is not 600 DPI, you need to change the RasterImage.XResolution and RasterImage.YResolution properties to 600.
3. Save the image to raster PDF format by using the RasterCodecs.Save() method.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#4 Posted : Sunday, January 16, 2011 3:02:47 PM(UTC)
trongcuong1710

Groups: Registered
Posts: 3


Yes, i'm using .Net Class, thank you for your answer, but there still one problem that after load the image to object, which class/method i must call to draw it to pdf file
 
#5 Posted : Monday, January 17, 2011 5:12:10 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

You do not need to draw the image on PDF. You only need to call 2 functions:
RasterCodecs.Load(source JPEG 2000 file)
RasterCodecs.Save(target PDF file name)

The Save() function will automatically create a PDF file and save the bitmap as a full page in that PDF. The size of the PDF page will be equal to the size of the loaded bitmap (in inches).

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-2024, Yet Another Forum.NET
This page was generated in 0.099 seconds.