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 : Monday, June 8, 2020 6:54:00 AM(UTC)
Abdul Rahman

Groups: Registered
Posts: 60


I'm trying to convert tiff to pdf using raster codecs as shown below,

Code:

var imageDocfilename = $@"{currentPath}\Image To Pdf\test.tiff";

var codecs = new RasterCodecs();
var image = codecs.Load(imageDocfilename);
codecs.Save(image, $@"{currentPath}\Image To Pdf\test.pdf", RasterImageFormat.RasPdf, 0);


But the output pdf only contains first page in TIFF. Please assist on how to convert all pages in tiff to PDF.
 

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 : Monday, June 8, 2020 7:54:12 AM(UTC)

Nick  
Nick

Groups: Registered, Tech Support, Administrators
Posts: 161

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

Note RasterCodecs.Load() only loads the first page in an image by default. We have a forum post showing how to modify this behavior to load all pages of an image.
https://www.leadtools.co...nstead-of-just-the-first

The RasterCodecs.Load() method also has multiple overloads that allow you to specify a page range.
https://www.leadtools.co...o/rastercodecs-load.html
Nick Crook
Developer Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
#3 Posted : Monday, June 8, 2020 8:51:10 AM(UTC)
Abdul Rahman

Groups: Registered
Posts: 60


Thanks That works.
 
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.061 seconds.