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, August 8, 2007 7:29:54 AM(UTC)

Johnk  
Johnk

Groups: Registered
Posts: 2


I am in the process of migrating from one document imaging system to another. When I export a document that is a multipage tif it is exported into individual tiff files. I was using the compactfile method to insert the page into the last page to combine them back together. On some images there will be pages that are inverted (black with white text) I looked at the original image that was exports and it is fine. So is it possible that the compact file method is causing this and if so is there a way to prevent it from happening.

Also because I am getting inverted files I was trying to check the images and verify if they are inverted or not. I was using the codecs.getinformation command, then I would look at the bytesperline and if they were greater than 312 then I would call the invertcommand. It doesn't always work, so I not sure if I have the parameters wrong or not. I was telling it to overwrite the page.

Any help on these issues would be greatly appreciated. I am new to the leadtools sdk, so it might be a lack of knowledge or understand on my part.

Thanks,

JohnK
 

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 : Friday, August 10, 2007 7:05:41 AM(UTC)

GregR  
GregR

Groups: Registered, Tech Support, Administrators
Posts: 764


I believe you sent this same question via email, so I will give you the same response plus a little extra.

Are all of the source images the same compression and palette?  Sometimes people will have inversion problems when they try to combine 1bpp LZW images and CCITT G4 images together because their palettes are opposites.  Checking the BytesPerLine is close to the idea, but you'd be better off checking the file format or checking the palette after you've loaded it.  You should be able to use the ColorResolutionCommand class on each image to ensure that they are all using the same palette, byte order, etc.

If they are different at times, then you may have to load and save files that differ to ensure that they all have the same compression.

If this does not answer your question, please send a small sample project (NOT your entire application) that isolates the problem you are experiencing so I can try to reproduce it here.

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