> -----Original Message-----
> From: Jeff Grobaski [SMTP:[EMAIL PROTECTED]
> Sent: Tuesday, March 18, 2003 23:00
> To:   '[EMAIL PROTECTED]'
> Subject:      [iText-questions] iText for Tif to PDF
> 
> I'm using iText for on demand conversion of TIF to PDF.  I'm also the JAI
> for converting TIF to JPG, allowing users to rotate a page, convert the
> rotated page from JPG to TIF and then store the newly rotated TIF.
> In implementing I have a couple questions...
> Where does the image class expect the origin to be? Top left, bottom left,
> top right, bottom right?
> 
        Bottom left.

> Is there any means (or can one be created) to intermix different page
> sizes
> (8.5x11, legal, 11x17, etc) and page orientations (portrait, landscape) in
> a
> single PDF document?
> 
        Yes. Remember that a page size change only happens in the next page,
not the current page where the change was set.

> We would be passing in the pages one at a time and each page can be
> different size and orientation.
> How do I call the RawImage Class API?
> I'd like to pass an array of pixels where each pixel is represented by a
> bit
> in the array, If the bit is 1, the pixel is black. If the bit is 0, the
> pixel is white. With the previous array definition, can I pass 1 for the
> component parameter and 1 for the bits per component parameter to get the
> API to return a valid Image? 
> 
        That's the way to go. For bw images is better to use other
constructor that provides G4 compression.

        Best Regards,
        Paulo Soares

> getInstance
> public static Image getInstance(int width,
>                                 int height,
>                                 int components,
>                                 int bpc,
>                                 byte[] data)
>                          throws BadElementException
>       Gets an instance of an Image in raw mode. 
> Parameters: 
>       width - the width of the image in pixels 
>       height - the height of the image in pixels 
>       components - 1,3 or 4 for GrayScale, RGB and CMYK 
>       data - the image data 
>       bpc - bits per component 
> Returns: 
>       an object of type ImgRaw 
> Throws: 
>       BadElementException - on error
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Does your code think in ink? 
> You could win a Tablet PC. Get a free Tablet PC hat just for playing. 
> What are you waiting for?
> http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions


-------------------------------------------------------
This SF.net email is sponsored by: Does your code think in ink? 
You could win a Tablet PC. Get a free Tablet PC hat just for playing. 
What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to