[iText-questions] The color depth 1 is not supported

2016-09-20 Thread Abedellatif Hussein
Hello, I am using iTextSharp version 5.5.2.0 and when trying to load the attached pdf sample 058780-02.pdf I get an exception in the ImageRenderInfo.GetImage() method the "PdfImageObject" is not returned and with a message saying "

Re: [iText-questions] Write some xmp metadata

2014-09-15 Thread Abedellatif Hussein
Hello, if as you mentioned, the CreateXmpMetadata() overwites the xmp metadata how can we add other metadata to the xmp section in PDFA where the CreateXmpMetadata() is required? Thanks, Abedellatif -- View this message in context: http://itext-general.2136553.n4.nabble.com/Write-some-xmp-met

Re: [iText-questions] Itext 5.4.1 - Metadata Bug?

2014-08-27 Thread Abedellatif Hussein
Hello, In PDF/A using the CreateXmpMetadata(), will only convert the standard document metadata to XMP. What is the best way to add all (Dublin Core) DC metadata to XMP metadata to PDF/A? Thanks, Abedellatif -- View this message in context: http://itext-general.2136553.n4.nabble.com/Itext-5-4

Re: [iText-questions] Itext 5.4.1 - Metadata Bug?

2014-08-25 Thread Abedellatif Hussein
Hello, where can I find example usage of the iTextsharp.xmp package? also I know that for PDF/A the CreateXmpMetadata(); will create the xmp metadata from the document metadata. will Adding custom metadata using addheader(tag1,value1) be added also to the xmp metadata when using the CreateXmpMetada

Re: [iText-questions] Itext 5.4.1 - Metadata Bug?

2014-08-21 Thread Abedellatif Hussein
Hello, Thanks for the suggestion, I upgraded to iTextShar v5.5.2.0 and the issue with PDF/A validation is fixed. I encountered many deprecated methods when manually adding xmp, such as AddRdfDescription(), what can be an alternative for that in the new library? or is there a place where we can find

Re: [iText-questions] Itext 5.4.1 - Metadata Bug?

2014-08-20 Thread Abedellatif Hussein
Hello, I am having the same validation error issue when generating PDF/A files. Did you have any solution or workaround for it? Thanks, Abedellatif -- View this message in context: http://itext-general.2136553.n4.nabble.com/Itext-5-4-1-Metadata-Bug-tp4658360p4660258.html Sent from the iText -

Re: [iText-questions] [SPAM] Re: Unable to open a PDF due to unsupported filter

2014-03-05 Thread Abedellatif Hussein
Hello, Thank you very much for this valuable information. Abedellatif -- View this message in context: http://itext-general.2136553.n4.nabble.com/Unable-to-open-a-PDF-due-to-unsupported-filter-tp4659826p4659832.html Sent from the iText - General mailing list archive at Nabble.com. --

Re: [iText-questions] Unable to open a PDF due to unsupported filter

2014-03-04 Thread Abedellatif Hussein
Hello, Thank You for your response.What do you mean with the "document failed validation"? I opened the file using adobe reader with no issues and validated the file against "JHOVE" a standard java based validation tool and says the file is valid and well formed. Can you please point me to the too

[iText-questions] Unable to open a PDF due to unsupported filter

2014-03-04 Thread Abedellatif Hussein
Hello, I am using iTextSharp v5.3.4.0 and I am trying to open the attached PDF file and in the pdf parser i get the Unsupported Pdf Exception message below. iTextSharp.text.exceptions.UnsupportedPdfException: The filter /CCF is not supported. at iTextSharp.text.pdf.PdfReader.DecodeBytes(Byte[] b

Re: [iText-questions] PDF virtual prints

2014-03-04 Thread Abedellatif Hussein
Thank You for your response. Abedellatif -- View this message in context: http://itext-general.2136553.n4.nabble.com/PDF-virtual-prints-tp4659821p4659825.html Sent from the iText - General mailing list archive at Nabble.com.

[iText-questions] PDF virtual prints

2014-03-03 Thread Abedellatif Hussein
Hello, I am having an issue with extracting .jbig2 images from a pdf file. I thought of doing a virtual print for this type pf images as jpgs! does iText library supports virtual prints of pdf pages? or is doing a virtual print of the pdf pages is a doable workaround? Thanks, Abedellatif -- Vi

Re: [iText-questions] 5.2.0.0 - Image extraction still not passing through for .jbig2 images

2014-02-26 Thread Abedellatif Hussein
Hello, I am having the same issue with extracting .jbig2 images from a pdf file. I thought of doing a virtual print for this type pf images as jpgs! do you know if iText library supports virtual prints of pdf pages? or is doing a virtual print of the pdf pages is a doable workaround? Thanks, Abed

Re: [iText-questions] How to skip text rendering when parsing image on text pdf file

2013-01-09 Thread Abedellatif Hussein
Thank you for your answer. Instead of parsing twice i will just loop through the objects inside the file and get the information before calling the parser like this: for (int j = 1; j <= reader.XrefSize; j++) { PdfObject pdfobj = reader.GetPdfObject(j);

Re: [iText-questions] How to skip text rendering when parsing image on text pdf file

2013-01-08 Thread Abedellatif Hussein
Hi, I have a pdf file with image and text as its content, the image and the text were scaled to the default pdf dpi"72". now in order to get the exact coordinates of the text I have to rescale them back to their normal size and to do that I need the image dpi value. Is there a way to find the image

Re: [iText-questions] How to skip text rendering when parsing image on text pdf file

2012-12-06 Thread Abedellatif Hussein
I tried the latest iTextSharp version 5.3.4 and Things work great. Thanks alot. -- View this message in context: http://itext-general.2136553.n4.nabble.com/How-to-skip-text-rendering-when-parsing-image-on-text-pdf-file-tp4655822p4657092.html Sent from the iText - General mailing list archive a

Re: [iText-questions] How to skip text rendering when parsing image on text pdf file

2012-12-06 Thread Abedellatif Hussein
I am using iTextSharp version 5.1.3. The actual exception message is: An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll Additional information: Index (zero based) must be greater than or equal to zero and less than the size of the argument list. -- View this messa

Re: [iText-questions] How to skip text rendering when parsing image on text pdf file

2012-12-05 Thread Abedellatif Hussein
Hi, Here you are the sample code and the sample image-on-text pdf that generates the exception. string documentName = @"C:\Temp\pdf\22568 20.pdf"; string extractFolder = @"C:\Temp\extractedImages"; string imageName = extractFolder + Path.DirectorySeparatorChar + Path.GetFileNameWithoutExtension(doc

[iText-questions] How to skip text rendering when parsing image on text pdf file

2012-08-07 Thread Abedellatif Hussein
Hi, I am trying to read and parse the content of an image-on-text pdf file. I need only to render the image and want to skip rendering the text layer content. Is there any settings to the parser to allow this action because i am having errors in this function. here is a copy of the stack trace. ---

Re: [iText-questions] Error generating PDF/A

2012-07-13 Thread Abedellatif Hussein
Thank you very much for your quick response. I am using FileStream now instead of StreamWriter. Thanks again -- View this message in context: http://itext-general.2136553.n4.nabble.com/Error-generating-PDF-A-tp4655571p4655585.html Sent from the iText - General mailing list archive at Nabble.com.

[iText-questions] Error generating PDF/A

2012-07-10 Thread Abedellatif Hussein
Hi, I am trying to generate an Image only pdf/a file using "iTextSharp v 5.3.0" from a jpg source. the code works fine when using JAVA iText library. everything works fine except when I try to embed the ICC color profile I get this exception "Object reference not set to an instance of an object.