If you are looking for an "out of the box" solution, you're not going to find one here...
Apparently, the file(s) you are working with and the code you "found on the internet" simply don't get along. That means you will need to fix the code. In order to fix the code, you need to learn what it does, how it does it and why it doesn't work. Once you understand why it doesn't work, then you can go ahead and learn what you need to fix it. The alternative would be to look at other (COTS - "off the shelf") PDF image extraction solutions and use them. It's all about what your task is and requirements are - but that's for your to figure out. -----Original Message----- From: Dmitriy Reznik [mailto:[email protected]] Sent: Monday, December 13, 2010 8:41 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Images extract problem I just know that the code that I found on internet is supposed to extract all images, but most of the images it extracts look like negatives, plus brightness is higher than in pdf, and contrast is lower. I don't even know if it is really masking, because in this case where is the second image of each pair? Is it realistic for me to get the right result, knowing that I have never done anything like that, and probably will never do again? I wonder if somebody else has faced same problem. Thanks, Dmitriy -----Original Message----- From: Leonard Rosenthol [mailto:[email protected]] Sent: Monday, December 13, 2010 11:28 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Images extract problem Are we talking about two completely separate images (eg. A boat and a car?) or are we talking about masking and/or transparency? In the case of the former, you will need to do your own compositing to "put them back together". In the case of the latter, you simply need to merge them into a single file format that supports what you are trying to achieve. This will probably require you to learn about image file formats, raster image compositing, blending, etc. -----Original Message----- From: Dmitriy Reznik [mailto:[email protected]] Sent: Monday, December 13, 2010 5:32 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Images extract problem I still don't get what should be done in my particular case. If only one of two images (one of which is covering another) is extracted, how the original picture can be restored? Thanks, Dmitriy -----Original Message----- From: Mark Storer [mailto:[email protected]] Sent: Friday, December 10, 2010 11:59 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Images extract problem Read chapter 7 (basic object formats) and 8.9 (images) of the PDF Reference: http://www.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/PDF32000_2008. pdf Chapter 13, section 2 of iText in Action (2nd Edition) covers how to do all that within iText, and there are numerous examples from that chapter available online. The relevant iText classes are PdfObject and its immediate subclasses (PdfDictionary, PdfArray, PdfIndirectRefeerence, etc). --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; Disclaimer<Cardiff> DisCard = null; > -----Original Message----- > From: dpreznik [mailto:[email protected]] > Sent: Thursday, December 09, 2010 10:07 AM > To: [email protected] > Subject: Re: [iText-questions] Images extract problem > > > Thank you for your message. Could you please give me more > details how it can be done? Because I am ignorant in all this stuff. > > Thanks. > -- > View this message in context: > http://itext-general.2136553.n4.nabble.com/Images-extract-prob lem-tp3079140p3080663.html > Sent from the iText - General mailing list archive at Nabble.com. > > -------------------------------------------------------------- > ---------------- > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Many questions posted to this list can (and will) be answered > with a reference to the iText book: > http://www.itextpdf.com/book/ Please check the keywords list > before you ask for examples: http://itextpdf.com/themes/keywords.php > > ------------------------------------------------------------------------ ------ Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, new data types, scalar functions, improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools, best practices and more. http://p.sf.net/sfu/oracle-sfdev2dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php ------------------------------------------------------------------------ ------ Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, new data types, scalar functions, improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools, best practices and more. http://p.sf.net/sfu/oracle-sfdev2dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php ------------------------------------------------------------------------ ------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
