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 : Wednesday, May 16, 2007 7:32:23 AM(UTC)

joedib  
joedib

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.
 

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, May 17, 2007 4:55:28 AM(UTC)

Adnan Ismail  
Guest

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)

joedib  
joedib

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)

GregR  
GregR

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.

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