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 : Tuesday, April 11, 2006 1:14:36 AM(UTC)
kalyanchakri

Groups: Registered
Posts: 13


is there any functionality available to split the multi-page tiff  image and to reorder the images like shuffling

i'm using LEADTOOLS for .Net V14.5 with v1.1

 

 

 

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, April 13, 2006 3:27:06 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

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

Hello,

You may try to do this by saving the Multi-page TIFF file to a different file. The code will be something as follows:
- Load the Multi-Page TIFF file:
+------------------------------+
LeadImage = CodecsCommand.Load(@"c:\fax1.tif");
+------------------------------+

- Save the Multi-page TIFF file to a different Multi-page file and change the pages order:
+------------------------------+
for (int i =LeadImage.PageCount ; i>0;i--)
CodecsCommand.Save(LeadImage,@"c:\test\test1.tif",RasterImageFormat.TifCcittGroup4,1,i,i,i,CodecsSavePageMode.Append);
+------------------------------+

So, you can load the multi-page TIFF file and then save it to a different multi-page TIFF with changing the pages order in any way that you want.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#3 Posted : Sunday, April 16, 2006 11:29:10 PM(UTC)
kalyanchakri

Groups: Registered
Posts: 13


Hi Thanks for your help,

but this code is just reversing the page order , my requirement is need to change the page order like moving next , move last , move previous , and move first ....

can you tell me is this posible to do directly using LeadTools

 

Thanks ,

kalyan

 

 
#4 Posted : Monday, April 17, 2006 1:25:08 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

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

Hello Kalyan,

Do you mean that you want to know how to navigate your Multi-page TIFF file?

If yes, I am attaching a small C# project that shows how to navigate you Multi-page TIFF file (Move Prev, Move Next, etc.).

Please check the attached project and let me know if this helps.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
File Attachment(s):
C# Multi-page tiff.zip (10kb) downloaded 43 time(s).
 
#5 Posted : Tuesday, April 18, 2006 12:35:44 AM(UTC)
kalyanchakri

Groups: Registered
Posts: 13


Hi Hasan,

 

I think you have mistaken me , you have sent me the code to navigate through Multi-page TIFF file .

but my requirement is like this .

Asume you have a 5 paged multi-page tiff document , and you are at 2nd page and when you press move-next button the page order should be change, means the 2nd page has to move to 3rd position and 3rd page has to move to 2nd .position .like

1,2,3,4,5 bfore

1,3,2,4,5 after

Hope you have got my poing ..

 

bye

kalyan

 
#6 Posted : Tuesday, April 18, 2006 3:24:17 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

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

Hello,

I am sorry for the misunderstanding. To replace the position of two pages in the same multi-page TIFF file, you can use something as the following code:
+--------------------+
private void button4_Click(object sender, System.EventArgs e)
{

// Get the Multi-page TIFF file information
CodecsImageInfo ImgInfo = CodecsCommand.GetInformation(TxtImageName.Text,true);

// Load the Multi-page TIFF file
LeadImage = CodecsCommand.Load(@"c:\multipage.tif");

// Load the 3rd page (from the Multi-page TIFF file) on the temporary raster image TempImg1
IRasterImage TempImg1 = CodecsCommand.Load(@"c:\multipage.tif" ,ImgInfo.BitsPerPixel,CodecsLoadByteOrder.BgrOrGray,3,3);

// Load the 2nd page (from the Multi-page TIFF file) on the temporary raster image TempImg2
IRasterImage TempImg2 = CodecsCommand.Load(@"c:\multipage.tif",ImgInfo.BitsPerPixel,CodecsLoadByteOrder.BgrOrGray,2,2);

try
{
// Move the 3rd page to the 2nd position in the Multi-page TIFF file
CodecsCommand.Save(TempImg1,@"c:\multipage.tif",ImgInfo.Format,TempImg1.BitsPerPixel,1,1,2,CodecsSavePageMode.Replace) ;

// Move the 2nd page to the 3rd position in the Multi-page TIFF file
CodecsCommand.Save(TempImg2,@"c:\multipage.tif",ImgInfo.Format,TempImg2.BitsPerPixel,1,1,3,CodecsSavePageMode.Replace);
}
catch(Exception e1)
{
MessageBox.Show(e1.Message.ToString());
}
}
+--------------------+

Please try the above code and let me know if this helps.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#7 Posted : Tuesday, April 18, 2006 5:21:28 AM(UTC)
kalyanchakri

Groups: Registered
Posts: 13


Thanks Hasan,

 

this code is working for my requirement

 

 

thanks,

Kalyan

 
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.169 seconds.