Home
 
The page you are viewing is part of our 160,000 page PDF discussion forum archive spanning 1999-2011.
Go to the new Planet PDF forum to join the PDF community.
 

Search
 Advanced   
Sign up for a WebBoard account Archive Forum Home


PLATINUM
SPONSOR

GOLD
SPONSORS



Topic  
Go to previous topicPrev TopicGo to next topicNext Topic
Author Message
kanalia
kanalia

Total Messages 17

Subject:CCITTFaxDecode and Windows 7

Hi guys
Some time ago I wrote a library (vb.net) to convert images into pdf/a docs and then extract images from it if necessary. The requirement was to write it without using third party components so I wrote it from scratch. Most of my images were bw tiffs so I used the CCITTFaxDecode filter. It worked fine on all os until windows 7. I compared files and it turned out the image stream is diffrent.
Any idea why same code would produce diffrent results on windows 7?, Regards, Mike


Posted: 29 Nov 2010 10:57 PM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
aandi
aandi

Total Messages 17064

Subject:CCITTFaxDecode and Windows 7

Do I have this right - your own code is producing different data? It isn't some other program, or an encrypted PDF?


Posted: 29 Nov 2010 11:03 PM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
kanalia
kanalia

Total Messages 17

Subject:CCITTFaxDecode and Windows 7

Yes, my app, same code.
I just stepped through the code on Windows 7 and 2008 Server and it looks that bitmap returned by 'Bitmap.SelectActiveFrame' brings diffrent results (The Flags property is different). It looks like a change or a bug in GDI.


Posted: 30 Nov 2010 12:01 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
kanalia
kanalia

Total Messages 17

Subject:CCITTFaxDecode and Windows 7

I attach two files. 'Test7.pdf'-created on Windows 7 and 'Test.pdf' created on 2008 server. I wonder if somebody could have a look at them and tell me what's wrong. Thanks guys



UnknownTest7.pdf

UnknownTest(81).pdf

Posted: 30 Nov 2010 02:55 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
aandi
aandi

Total Messages 17064

Subject:CCITTFaxDecode and Windows 7

Can see Acrobat says "Insufficient data for an image". It doesn't report errors in filters, it just stops reading and so this error is typical.

What does the actual compression for you (with CCITT fax methods)? Is it a GDI+ API?


Posted: 30 Nov 2010 04:00 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
aandi
aandi

Total Messages 17064

Subject:CCITTFaxDecode and Windows 7

There is more wrong with this file too. Extracting pages in Acrobat fails, so does PDF/A preflight. I find the xref addresses peculiar, pointing as they do to a second newline before the obj line. The object metadata dictionary is certainly malformed. And there seems something else too.


Posted: 30 Nov 2010 07:21 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
erling_b
erling_b

Total Messages 8

Subject:CCITTFaxDecode and Windows 7

>Hi guys
>Some time ago I wrote a library (vb.net)
>to convert images into pdf/a docs and
>then extract images from it if
>necessary. The requirement was to write
>it without using third party components
>so I wrote it from scratch. Most of my
>images were bw tiffs so I used the
>CCITTFaxDecode filter. It worked fine on
>all os until windows 7. I compared files
>and it turned out the image stream is
>diffrent.
>Any idea why same code would produce
>diffrent results on windows 7?, Regards,
>Mike

Hi Mike,

I have the same problem.... The code is using .net and works on XP, but not in Windows 7 or Win Srv 2008 R2.

Found this on the net:
"It seems that the behaviour of GDI+ is changed in Windows 7: The resulting CCITT bitmap data is no longer encoded in a single strip. Because of this I cannot use this bitmap data in my PDF file."

Have you find any solutions?

Regards from Norway,
Erling


Posted: 19 Jan 2011 09:10 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
   
Go to previous topicPrev TopicGo to next topicNext Topic

go




Top | News | Developer | Find PDF Tools | Sponsorship | Tips | Home



Debenu's Planet PDF - a comprehensive site exclusively focused on Adobe Acrobat/PDF users and uses. Debenu's Planet PDF - Resources for Adobe Acrobat and PDF users

Please post PDF-related questions to our Planet PDF Forum forums.planetpdf.com. To send comments about this site please visit our contact page.
Planet PDF, Planet PDF Forum, PDF SDK - Debenu Quick PDF Library and Debenu are all copyright
© 2011 Debenu Pty Ltd.. All Rights Reserved. Privacy policy.