This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, May 16, 2007 7:32:23 AM(UTC)
Groups: Registered
Posts: 2
I am looking for an example that will take a bunch of .tif files and output a single .pdf file.
I am not looking to use any windows forms. I have the list of files and the output filename.
Thanks.
#2
Posted
:
Thursday, May 17, 2007 4:55:28 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
You can simply use the LEADTOOLS Load and the Save methods
without using any user interfaces. Also, to save PDF files you need to download
and install LEADTOOLS PDF plug-in. For more information about the LEADTOOLS PDF
plug-in, please see this page:
http://www.leadtools.com/SDK/Raster/Raster-Addon-PDF.htm
However the detailed information regarding these methods
depends on the following two points:
1. Your preferred programming interface, LEADTOOLS has (DLLs
API, C++ Class Library, .NET classes, ActiveX and COM objects)
2. Your preferred development language such as (VB, VC++,
VB.NET or C#, etc…)
#3
Posted
:
Thursday, May 17, 2007 8:59:13 AM(UTC)
Groups: Registered
Posts: 2
1. Your preferred programming interface, LEADTOOLS has (DLLs
API, C++ Class Library, .NET classes, ActiveX and COM objects)
.NET classes
2. Your preferred development language such as (VB, VC++,
VB.NET or C#, etc…)
C#
Thanks.
#4
Posted
:
Monday, May 21, 2007 6:22:39 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 764
Here is a C# code snippet that loads four separate TIF files and then saves them out as a single PDF with the v15 .NET libraries:
RasterImage img;
img = codecs.Load("1.tif", 0, CodecsLoadByteOrder.Bgr, 1, 1);
img.AddPage(codecs.Load("2.tif", 0, CodecsLoadByteOrder.Bgr, 1, 1));
img.AddPage(codecs.Load("3.tif", 0, CodecsLoadByteOrder.Bgr, 1, 1));
img.AddPage(codecs.Load("4.tif", 0, CodecsLoadByteOrder.Bgr, 1, 1));
codecs.Save(img, "combined.pdf", RasterImageFormat.RasPdf, 24, 1, 4, 1, CodecsSavePageMode.Overwrite);
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.