I didn't say random - I said raw - meaning it's just an array of the
"pixels" that make up the image.
For example, consider an RGB image, then it's an array consisting of the
color values as in [R G B R G B R G B .]. A CMYK image, therefore is [C
M Y K C M Y K ...]. Remember there are 11 way
What is the format? How do I decode it..? Surely it isn't just
random bytes -- it has to adhere to some standard/structure. Is there
an API in iText to decode it?
I'll go take a look at the spec.
On Thu, Sep 24, 2009 at 9:44 PM, Leonard Rosenthol wrote:
> AH...
>
> That's because it is _NOT_
When YOU are generating the PDF - then YOU can put custom information in the
PDF along with the objects. It's called Marked Content, and iText has APIs
for supporting it. Just use that to put info about the barcode around it
and then simply scan the document looking for your keys and pull out the
AH...
That's because it is _NOT_ a TIFF image! It is a raw bunch of bits of image
data. Consult the PDF Reference/ISO 32000-1 for details.
Leonard
On 9/25/09 8:33 AM, "Davis Ford" wrote:
> BTW: I already have a 3rd party lib that can scan raster images for
> barcodes, so this is not a probl
Hi Leonard, I created the PDF myself using iText, and created the
barcode within it. I guess what I'm trying to figure out is if I
create a datamatrix barcode programmatically using iText, what can I
expect if I try to read it back out of the document. You indicate
that you think it is vector...h
But that barcode from iText is vector, AFAIK. Are you finding the image
that you expect? Have you verified it's the correct one?
I think you are trying to move forward too quickly before you verify all
your assumptions.
On 9/25/09 8:27 AM, "Davis Ford" wrote:
> Hi Leonard, they will all be
BTW: I already have a 3rd party lib that can scan raster images for
barcodes, so this is not a problem either. I also have code that can
properly scale/re-scale a TIFF image if it was a fax -> scan.
I was actually pleased to see that the type of image was
"/CCITTFaxDecode" created by iText Barcod
Hi Leonard, they will all be raster. This is not a problem.
Did you have a chance to look at the code I posted, and if so -- can
you pinpoint how/why the TIFF bytes are corrupt?
I'm just looking to get a simple example to work that creates
Datamatrix in a PDF, then finds the Image again and gets
You have a LOT of problems with this model.
Not all barcodes in a PDF are raster images - in fact, most are going to be
a series of vector operations (aka draw line, move pen, draw line, etc.).
However some are also done using custom fonts in which case the only thing
in the PDF is the text ("abc"
Let me state this problem another way. I think I figured out how to
get the raw bytes of the barcode image, but decoding it is a problem.
I create this barcode from iText like so:
// create datamatrix bar code
BarcodeDatamatrix codeDm = getDatamatrix(code);
doc.add(codeDm.createImage());
privat
Is there a simple example somewhere to find all images in a PDF and
get them as a byte array? I want to extract them for the purpose of
barcode scanning.
I have something like this:
final PdfReader reader = new PdfReader(pdfBytes);
PdfDictionary pg = reader.getPageN(1);
11 matches
Mail list logo