Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
Unknown JPEG 2000 file type |
Post Reply ![]() |
Author | |
geonetwork ![]() Team Player ![]() ![]() Joined: 12 Mar 07 Status: Offline Points: 27 |
![]() ![]() ![]() ![]() ![]() Posted: 15 Feb 18 at 9:43AM |
Hi everybody, I'm using Delphi Tokyo 10.2.2 and DebenuPDFLibrary 14.11 (I've tried with 13.12 also). I'm using this simple code to load a graphics field into a TImage Image1.Picture.Assign((FieldByName('IMAGE') as TGraphicField)) As soon as the unit DebenuPDFLibrary is included in a project, I get this exception: Unknown JPEG 2000 file type. If I remove DebenuPDFLibrary unit then exception disapear. Any ideas?
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Where can we download and check the graphic file?
jpeg2000 is already supported for many years now... What does QuickPDF in your delphi project? A more complete code snippet would be useful. Perhaps the question is how to fill the TGraphicField... |
|
Cheers,
Ingo |
|
![]() |
|
tfrost ![]() Senior Member ![]() Joined: 06 Sep 10 Location: UK Status: Offline Points: 437 |
![]() ![]() ![]() ![]() ![]() |
We really need to see some of your code to help with this. You imply that merely including the unit causes the problem without adding any API calls to QuickPDF. If this is true, then you need to look for a match between symbols defined in the QuickPDF API and those defined elsewhere in your application and used units. If you have duplicated names, you are likely to see an exception. Perhaps altering the position of DebenuPDFLibrary in the units list will help you narrow this down, but it is unlikely to fix the real problem.
Finally, when you trace with the debugger using the debug Delphi DCU files, where precisely does the exception occur and what is in the stack at that moment? As you move up the stack, do you see unexpected units being visited?
|
|
![]() |
|
John Whitham ![]() Beginner ![]() Joined: 20 Apr 16 Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() |
I have encountered this error when loading an picture into a TImage from stream saved out of QuickPDF. For me it came from not being specific about loading different types. So:
if pdfdoc.ImageType in [1,3] then image2.Picture.LoadFromStream(astream) else if pdfdoc.ImageType = 2 then image2.Picture.Bitmap.LoadFromStream(astream); works for TIFF, JPEG and BMP whereas image2.Picture.LoadFromStream(astream); with a BMP gives the "Unknown JPEG 2000" error in TImage.loadfromstream.
|
|
![]() |
|
geonetwork ![]() Team Player ![]() ![]() Joined: 12 Mar 07 Status: Offline Points: 27 |
![]() ![]() ![]() ![]() ![]() |
The issue has been fixed in 14.12 release.
|
|
![]() |
|
geonetwork ![]() Team Player ![]() ![]() Joined: 12 Mar 07 Status: Offline Points: 27 |
![]() ![]() ![]() ![]() ![]() |
My case was different, but I solved replacing: with
Picture.Bitmap.Assign((FieldByName('IMAGE') as TGraphicField)); I hope it can help you |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi John,
jpeg2000-support seems to be complex stuff? What's important regarding this issue is the QP-version you're using. Jpeg2000-support was first introduced with version 7.26 An additional enhancement was released with version 8.16 The versions 10.16 and 15.11 came along with some fixes regarding jpeg2000-support. If you're using a version before 15.11 or 10.16... |
|
Cheers,
Ingo |
|
![]() |
|
lsc82 ![]() Beginner ![]() Joined: 07 Nov 18 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
Hi, I have this problem with QuickPDF 13.12. I use Report Builder (Digital Metaphors 19.2 - latest) Only DECLARING DebenuPDFLibrary in the project - NOT USING IT - the report generation process with BITMAP image raise an error: Unknown JPEG 2000 file type The problem raise here: // for bitmaps, call DataPipeline.GetFieldAsPicture HOW to SOLVE this problem? Thanks |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi Isc,
if you're removing the declaration of QuickPDF then it works again? Like i've told here before: Perhaps a change to version 15.11 can fix it. Cheers and welcome here, Ingo Edited by Ingo - 13 Nov 18 at 8:02PM |
|
Cheers,
Ingo |
|
![]() |
|
lsc82 ![]() Beginner ![]() Joined: 07 Nov 18 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
Hi,
thanks for your reply, Ingo. I understand "upgrade to solve" but this is not easy for us at this stage of our project (it was very hard to find the realtionship between YOUR component and the error on OTHER components, we spent MONTHS on it!!! ![]() ![]() What I don't really understand is HOW YOUR component interferes with an other one without being used, but only declared (perhaps it interferes with the BASIC delphi components!). I don't ask you to make a new 13.X version, solving this very dangerous behavior, but help us to do a work-around is a "minimum sign of comprehension". (We don't have your source code...) Thanks |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi Isc,
what do you think who i am? ;-) I'm a user as you are... This is a forum ... a user forum - Not a publisher forum. If you want any changes you should enter the official support page to enter a technical question. "... if you're removing the declaration of QuickPDF then it works again? ..." |
|
Cheers,
Ingo |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() 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 |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store