Print Page | Close Window

Foxit Quick PDF Library - JPEG2000

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=4037
Printed Date: 09 May 24 at 7:51PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Foxit Quick PDF Library - JPEG2000
Posted By: weha
Subject: Foxit Quick PDF Library - JPEG2000
Date Posted: 12 Jan 24 at 2:12PM
I have a PDF document from a scanner. The document contains images in JPEG2000 format. The Foxit Quick PDF Library returns BMP as image type (GetImageListItemIntProperty(imageList, imageNumber, 400) = 2) and displays the image as a black rectangle. 

My question: Can the Foxit Quick PDF Library render JPEG2000 images?



Replies:
Posted By: Ingo
Date Posted: 20 Feb 24 at 8:05PM
Hi Werner :)

It's a pdf library to handle and maintain pdf documents - not an image library ;-)
Nevertheless inside/internally it can work with the jpeg2000-format.
Below is a part from a source function:
procedure TPDFImageDecoder.LoadJPEG2000;
{$IFDEF NOJPEG2000}
begin
end;
{$ELSE}
var
  MS: TMemoryStream;
  JB: TJpeg2000Bitmap;
  Row: Integer;
  Col: Integer;
  CMYK: TPDFCMYKColor;
  RGB: TPDFRGBColor;
  RowData: array of Byte;
  IsCMYK: Boolean;
begin
  IsCMYK := False;
  JB := TJpeg2000Bitmap.Create;
  try
    MS := TMemoryStream.Create;
// ...

The real render functions of the library doesn't support jpeg2000.
Below you'll find the render options from the reference guide:
Options
0 = BMP output
1 = JPEG output
2 = WMF output
3 = EMF output
4 = EPS output
5 = PNG output
6 = GIF output
7 = TIFF output
8 = EMF+ output
9 = HTML5 output
10 = G4 TIFF output

http://quickpdf.xobor.de/



-------------
Cheers,
Ingo




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk