Re: [iText-questions] HTMLWorker & Alignment
Dominic Maricic wrote: > There's no way to use another program to parse the html and the > insert it into a PdfPTable right? I don't see the problem. In my applications I usually use dom4j to preprocess the XML/HTML and I tell dom4j to remove the ignorable whitespace. Another possibility would be to implement the ignorableWhitspace method in SimpleXMLParser. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] HTMLWorker & Alignment
I actually did read that, that's why I wrote in the last email "By the way, the HTMLWorker only generates about 10% of the content within the program. The rest is all using normal Chunks, Paragraphs, etc. " I have exactly what you said, a few fields that users can input html and then that gets inserted into the PDF document. The problem is that they usually enter in a few paragraphs. I see you're meaning just one line fields. There's no way to use another program to parse the html and the insert it into a PdfPTable right? Otherwise I'll get to work on a solution stripping down the extra whitespace and post what I come up with for others! Thanks again for all the hard work! Dominic 1T3XT info wrote: > > Dominic Maricic wrote: >> I did not find >> this noted in the book or anywhere else online. Did I miss something? > > p459: "You typically won’t use HtmlWorker to parse complete HTML files > with an , , and tag, but rather to parse small > snippets of HTML. > I don’t say it’s good design, but I know some projects that store > Strings with HTML tags in a database." > > You didn't read between the lines that HTMLWorker wasn't designed to > parse complete HTML files, but to deal with database fields that contain > HTML tags. > -- > This answer is provided by 1T3XT BVBA > http://www.1t3xt.com/ - http://www.1t3xt.info > > -- > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > ___ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://www.1t3xt.com/docs/book.php > > -- View this message in context: http://www.nabble.com/HTMLWorker---Alignment-tp21474244p21615529.html Sent from the iText - General mailing list archive at Nabble.com. -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] when i add an image to a pdf the edges are cut off
Ryan Wexler wrote: > Well is there a tutorial or docs on changing compression levels using > itext when saving a document because I don't see much in the docs? I have said NOTHING about compression levels whatsoever. That is completely irrelevant in your context. All I did was point you to the fact that JPG is an image type with lossy compression. This is "supposé connu" for every developer! > I am trying keep the files reasonably small and the documents I am > compressing are generally but not always text documents captured > through a scanner. What compression technique do you recommend? I feel like I'm talkinhg to a wall. Time for me to shut up. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] when i add an image to a pdf the edges are cut off
Well is there a tutorial or docs on changing compression levels using itext when saving a document because I don't see much in the docs? I am trying keep the files reasonably small and the documents I am compressing are generally but not always text documents captured through a scanner. What compression technique do you recommend? On Thu, Jan 22, 2009 at 12:44 PM, 1T3XT info wrote: > Ryan Wexler wrote: >> It appears as if the dpi and the pixels are the same, yet the size is >> drastically different. > >> So why does the second one yield an image that is 10 times as big? > > Most of the other subscribers remain silent because they assume this is > a rhetorical question. At least I do. If it isn't, please google for the > words: "jpg lossy compression". > -- > This answer is provided by 1T3XT BVBA > http://www.1t3xt.com/ - http://www.1t3xt.info > > -- > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > ___ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://www.1t3xt.com/docs/book.php > -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] iTextDotNet & FIPS
Any idea why the variant they are using would cause this problem? thanks - dave From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: Thu 1/22/2009 7:51 AM To: Post all your questions about iText here Subject: Re: [iText-questions] iTextDotNet & FIPS FWIW: FIPS isn't new - it's been around for MANY years. In addition, there are multiple variants of FIPS... Leonard On 1/22/09 3:31 PM, "David Thielen" wrote: Hi; The government has a new security standard called FIPS. One of our customers turned on their implementation of FIPS and with iTextDotNet (not the Java version) we now get the following - and we do not do any encryption of the PDF. It runs fine if FIPS is not turned on. Any ideas - thanks - dave Exception: Error serializing value 'ExceptionConverter: java.security.NoSuchAlgorithmException: java.lang.InstantiationException: com.ms.vjsharp.security.provider.MD5' of type 'com.lowagie.text.ExceptionConverter.' Inner Exception: System.Runtime.Serialization.SerializationException: Type 'com.lowagie.text.ExceptionConverter' in Assembly 'iText, Version=1.4.1.2, Culture=neutral, PublicKeyToken=82be440d6061a22f' is not marked as serializable. at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter) at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter) at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck) at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck) at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph) at System.Web.UI.ObjectStateFormatter.SerializeValue(SerializerBinaryWriter writer, Object value) -- Leonard Rosenthol PDF Standards Architect Adobe Systems Incorporated -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Issue with Courier font white spaces width
TaRe wrote: > I am creating a PDF document that requires all characters to be the same > width. > > protected static Font defaultFont = FontFactory.getFont(FontFactory.COURIER, > 6, Font.NORMAL); > > However, I find that the whitespaces have different width than the other > letters and numbers. This is very hard to believe. Please provide proof. Also note that the font isn't embedded, maybe you are using some faulty viewer. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] acroform spanning multiple pages
Dan Koehler wrote: > Hi, > > I am not understanding something fundamental here. When I > create an Acroform across multiple pages, it always renders the fields > on the last page only. I didn't look at your example, but you should look at mine: http://1t3xt.info/examples/browse/?page=example&id=374 -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Removing a signature thoroughly (acroFields.removeField not sufficient?)
Starke, Rico wrote: > Hi, > > thanks for your quick reply! Can you provide more information on how to do a > full save with iText after removing the signature field? What I do right now > is: > > InputStream signedFileStream = // FileInputStream for a temporary java.io.File > OutputStream resultFileStream = // FileOutputStream for a different temporary > File > PdfReader reader = new PdfReader(signedFileStream); > AcroFields acroFields = reader.getAcroFields(); > acroFields.removeField("my_signature_name"); > PdfStamper stamper = new PdfStamper(reader, resultFileStream); > stamper.close(); > reader.close(); For starters, your getting your AcroFields object from the reader. You should get it from the stamper: AcroFields acroFields = stamper.getAcroFields(); But I don't know if this will be sufficient to remove the signature. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Removing a signature thoroughly (acroFields.removeField not sufficient?)
Leonard Rosenthol wrote: > You can't use a Stamper, AFAIK. It always does an incremental update save. No, it doesn't ;-) -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] PHP port in the works
Bernd Oliver Sünderhauf wrote: > Dear Bruno, dear Paolo, > > I want to inform you that some weeks ago I started porting iText to PHP. That's very good news! And also: you're realistic, it won't be obvious. Please keep us posted on your progress. I'm thinking of making a "lite" version of iText. It might be easier to port a light version that the full iText. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Different transparency for cells in PdfPtable
tlc wrote: But how do I make the background transparent? Not by ignoring my previous answers: 17/01/2009 9:49: Have a look at this example: http://1t3xt.info/examples/browse/?page=example&id=164 It's sufficient to adapt the subclass Ellipse so that it draws a rectangle to the BACKGROUNDCANVAS to achieve your goal. I could not find a way to make tableHeaderBgColor or COLOR_MEDIUM_BLUE transparent. Could you provide a code example of what you meant? See attachment. Now my wife is angry at me because I chose to spend a quarter of an hour to you instead of her. Thank you very much. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info import java.awt.Color; import java.io.FileOutputStream; import java.io.IOException; import com.lowagie.text.Document; import com.lowagie.text.DocumentException; import com.lowagie.text.Element; import com.lowagie.text.Phrase; import com.lowagie.text.Rectangle; import com.lowagie.text.pdf.PdfContentByte; import com.lowagie.text.pdf.PdfGState; import com.lowagie.text.pdf.PdfPCell; import com.lowagie.text.pdf.PdfPCellEvent; import com.lowagie.text.pdf.PdfPTable; import com.lowagie.text.pdf.PdfWriter; /** * This example was written by Bruno Lowagie. It is part of the book 'iText in * Action' by Manning Publications. * ISBN: 1932394796 * http://www.1t3xt.com/docs/book.php * http://www.manning.com/lowagie/ */ public class TransparentCellBackground implements PdfPCellEvent { public PdfGState documentGs = new PdfGState(); public TransparentCellBackground() { documentGs.setFillOpacity(0.8f); documentGs.setStrokeOpacity(1f); } public void cellLayout(PdfPCell cell, Rectangle rect, PdfContentByte[] canvas) { PdfContentByte cb = canvas[PdfPTable.BACKGROUNDCANVAS]; cb.saveState(); cb.setGState(documentGs); cb.setColorFill(new Color(0, 122, 201)); cb.rectangle(rect.getLeft(), rect.getBottom(), rect.getWidth(), rect.getHeight()); cb.fill(); cb.restoreState(); } /** * Generates a PDF file with a table and special cells (using cell events). * * @param args *no arguments needed here */ public static void main(String[] args) { Document document = new Document(); try { PdfWriter.getInstance( document, new FileOutputStream("transparentcellbackground.pdf")); document.open(); TransparentCellBackground example = new TransparentCellBackground(); PdfPTable table = new PdfPTable(6); PdfPCell cell; for (int i = 1; i <= 30; i++) { cell = new PdfPCell(new Phrase("day " + i)); cell.setHorizontalAlignment(Element.ALIGN_CENTER); cell.setBorder(Rectangle.NO_BORDER); cell.setPadding(4); if (i % 2 == 0) cell.setCellEvent(example); table.addCell(cell); } document.add(table); } catch (DocumentException de) { System.err.println(de.getMessage()); } catch (IOException ioe) { System.err.println(ioe.getMessage()); } // step 5: we close the document document.close(); } }-- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Hi everybody
sylkat wrote: > This is a big company with a strict rules, so big architecture problems. So they have plenty of $$$ of which none were paid for iText so far. Do you hear me whistling? > I supose that the big solution is rewrite all code I'm sorry, but I don't believe what you wrote in your posts to this list. It all sounds so unprofessional. Why should we bother? -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] HTMLWorker & Alignment
Dominic Maricic wrote: > I did not find > this noted in the book or anywhere else online. Did I miss something? p459: "You typically won’t use HtmlWorker to parse complete HTML files with an , , and tag, but rather to parse small snippets of HTML. I don’t say it’s good design, but I know some projects that store Strings with HTML tags in a database." You didn't read between the lines that HTMLWorker wasn't designed to parse complete HTML files, but to deal with database fields that contain HTML tags. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] when i add an image to a pdf the edges are cut off
Ryan Wexler wrote: > It appears as if the dpi and the pixels are the same, yet the size is > drastically different. > So why does the second one yield an image that is 10 times as big? Most of the other subscribers remain silent because they assume this is a rhetorical question. At least I do. If it isn't, please google for the words: "jpg lossy compression". -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] how to construct a geospatial measure dictionary?
sam krasnik wrote: > > > Matthias Uhler wrote: >> >> >> sam krasnik wrote: >>> >>> I tried doing the same thing, but I couldn't figure out a way to create >>> the VP dictionary on the page, because I don't know how to get a direct >>> PdfPage object whose dictionary I can modify. I can get an indirect >>> reference through the writer via getPageReference, but not the PdfPage >>> itself. I am importing a page from a PdfReader and get a >>> PdfImportedPage, but how do I get access to the underlying dictionary >>> that will be written to the writer? >>> >>> thanks, >>> --Sam >>> >> >> I had the same problem. I think, there is no way to acces the >> page-dictionary. >> So you have to produce some code to some existing itext-classes to get >> the possibility >> to add a VP to the page-dictionary. >> >> bg, matthias >> > > I did the same thing (I created a sub-interface of PdfPageEvent to have an > onAddPage method, which passes my a PdfPage which I can add stuff to), and > came up with the attached pdf. Unfortunately, after looking at it for a > while, I can't see the difference between your final "test.pdf" and mine. > The only difference is the slight difference in dimensions and dictionary > key order. Please let me know if I'm missing something. > > http://www.nabble.com/file/p21609305/geo_base.pdf geo_base.pdf > > thanks, > > --sam > Nevermind, I figured it out. the Spec says VP is an *array* of dictionaries, but I just had a single dictionary. Please ignore the previous message... --sam -- View this message in context: http://www.nabble.com/how-to-construct-a-geospatial-measure-dictionary--tp20703775p21612725.html Sent from the iText - General mailing list archive at Nabble.com. -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] PHP port in the works
Dear Bruno, dear Paolo, I want to inform you that some weeks ago I started porting iText to PHP. The plan is to lower the prerequisites for running iText on shared servers, so every webmaster can make use of the library without needing a Java environment. For some reasons, several PHP-based CMS have postponed or even dropped PDF support in the last years (this includes the award winning Drupal CMS that I've been contributing to for years). The reasons include: - both their custom classes and available free PHP classes were (and still are) not powerful enough for even the most basic purposes - using iText over a Java-PHP bridge would have significantly raised the CMS' prerequisites and therefore posed barriers for wide adoption I believe that a PHP port can help spreading iText and more generally Open Source PDF generation to a wider audience. While major, professional websites already use the free iText library (Java or .NET) or could do so, commercial PHP classes are still widely used. At this point about one third of the classes have been rawly ported to PHP 5, and even the raw port continues to be major work. The following steps would be some architectural questions, including the question how close PHP-iText should follow the original Java iText. Finally, apart from a different syntax, both PHP's architecture and built-in functionality considerably differ from Java and the .NET platforms in some aspects, which also has impacts on good practices. This includes: no true overloading, weak typing, dynamic handling of variables' size, few built-in objects, limitations in type-casting between custom objects, etc. p.p. I'm not even sure if this list includes all of the more important differences. So there is still a long way to go, and it's even hard to say for sure, that the work will lead to a working and satisfactory result. I will definitely know more in a few weeks. At the moment I don't see much sense in sharing the still severely broken code with the community. However I will immediately contribute the code to a VCS as soon as the port is working to some extent. Also, I'm open to discuss this and all other questions. I'd also be very happy about suggestions, ideas, and answers on the questions raised above. Feedback on the general idea would definitely help me keep devoting considerable amounts of time into the port work. Best regards, Pancho -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] how to construct a geospatial measure dictionary?
Matthias Uhler wrote: > > > sam krasnik wrote: >> >> I tried doing the same thing, but I couldn't figure out a way to create >> the VP dictionary on the page, because I don't know how to get a direct >> PdfPage object whose dictionary I can modify. I can get an indirect >> reference through the writer via getPageReference, but not the PdfPage >> itself. I am importing a page from a PdfReader and get a PdfImportedPage, >> but how do I get access to the underlying dictionary that will be written >> to the writer? >> >> thanks, >> --Sam >> > > I had the same problem. I think, there is no way to acces the > page-dictionary. > So you have to produce some code to some existing itext-classes to get the > possibility > to add a VP to the page-dictionary. > > bg, matthias > I did the same thing (I created a sub-interface of PdfPageEvent to have an onAddPage method, which passes my a PdfPage which I can add stuff to), and came up with the attached pdf. Unfortunately, after looking at it for a while, I can't see the difference between your final "test.pdf" and mine. The only difference is the slight difference in dimensions and dictionary key order. Please let me know if I'm missing something. http://www.nabble.com/file/p21609305/geo_base.pdf geo_base.pdf thanks, --sam -- View this message in context: http://www.nabble.com/how-to-construct-a-geospatial-measure-dictionary--tp20703775p21609305.html Sent from the iText - General mailing list archive at Nabble.com. -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Different transparency for cells in PdfPtable
But how do I make the background transparent? I added the following code to create a shading color instead of using the image for the header background: ShadingColor tableHeaderBgColor; Rectangle page = document.getPageSize(); PdfShading axial = PdfShading.simpleAxial(writer, document.leftMargin(), page.getHeight(), page.getWidth() - document.rightMargin(), page .getHeight(), COLOR_MEDIUM_BLUE, Color.white, false, false); PdfShadingPattern axialPattern = new PdfShadingPattern(axial); tableHeaderBgColor = new ShadingColor(axialPattern); // apply it to the cell cell.setBackgroundColor(tableHeaderBgColor); I could not find a way to make tableHeaderBgColor or COLOR_MEDIUM_BLUE transparent. Could you provide a code example of what you meant? Thanks. 1T3XT info wrote: > > > You should remove the line: > cell.setBackgroundColor(COLOR_LIGHT_BLUE); > and apply this background using a cell or table event. > Make that background transparent, NOT the table. > > -- View this message in context: http://www.nabble.com/Different-transparency-for-cells-in-PdfPtable-tp21511310p21609297.html Sent from the iText - General mailing list archive at Nabble.com. -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Changing submit button URL
I tried live cycle designer to convert XFA form to AcroForm. I did not find in UI. where to do it? can we really do it. In some other message i saw you said it cannot be done and use some program to remove XFA content from pdf...?? thank you. Roopa Leonard Rosenthol-3 wrote: > > Because SOME XFA-based forms also carry a "mirror image" in AcroForm > format - BUT that "mirror image" is thrown away as soon as you open it up > in Acrobat/Reader. > > If you want to use an XFA-based form with iText, you will need to follow > the examples to parse the XFA yourself. It's just XML. Read the > documentation and proceed accordingly. > > There is an API in iText for determing the type of form. > > You can use LiveCycle Designer to convert an XFA form to an AcroForm. > > Removing the XFA data does NOT convert it - it just throws away all your > info :(. > > Leonard > > > On 1/21/09 1:05 PM, "Roopa Bethi" wrote: > > > > In this form i am able to use setfiled method of acrofields and able to > fill > in fields. > How am i able to use it if its not an AcroForm.? > How do i know my form is acroform or XFA form? > if what adobe livecycle genrates is a XFA form . how can i make it > acroform. > removing XFA method did not work for me.How i can i generate a AcroForm. > is > there any other software for it? > > Thank you. > Roopa > > Leonard Rosenthol-3 wrote: >> >> All PDFs are/should be compliant with the ISO 32000-1 standard, which >> documents (in 700+ pages!) all the features that can be present in a PDF >> document. It also refers to various other standards who content (eg. >> TrueType, JPEG, XFA, etc.) that can be present in a PDF. >> >> In your particular instance, there are two types of PDF forms - AcroForms >> and XFA-based forms. These are described inside the PDF in two VERY >> DIFFERENT ways. You are trying to use AcroForms code on an XFA-based >> form >> - won't work (as Bruno told you). So your code will need to first test >> what type of form you have and then act accordingly. >> >> Leonard >> >> >> On 1/21/09 11:11 AM, "Roopa Bethi" wrote: >> >> >> >> Why is that if pdf file generated with live cycle designer my code does >> not >> work?? >> I am very new to pdf and all stuff.. >> Are all pdfs are not same? >> How can i proceed at this point.? >> If pdf generated with live cycle does not work. what can i do? >> do i need to find out an other software to generate pdfs? >> usually how are pdfs designed and modified? >> I also tried removing XFA from my pdf file. >> it did not make my code work. more over i was not able to access fields >> by >> name.. >> >> But i need to use pdf forms in my application and make them working.. >> should i go for pay softwares in which there is more support for pdf >> generation and manipulation?? >> >> any replies really appreciated >> thank you. >> Roopa. >> >> >> 1T3XT info wrote: >>> >>> Roopa Bethi wrote: This pdf file is generated with adobe livecycle designer. >>> >>> That explains why your code doesn't work. >>> >>> > where can i get the documentation on how to use it. >>> >>> Read the XFA specification. >>> -- >>> This answer is provided by 1T3XT BVBA >>> http://www.1t3xt.com/ - http://www.1t3xt.info >>> >>> -- >>> This SF.net email is sponsored by: >>> SourcForge Community >>> SourceForge wants to tell your story. >>> http://p.sf.net/sfu/sf-spreadtheword >>> ___ >>> iText-questions mailing list >>> iText-questions@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/itext-questions >>> >>> Buy the iText book: http://www.1t3xt.com/docs/book.php >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Changing-submit-button-URL-tp21539202p21580255.html >> Sent from the iText - General mailing list archive at Nabble.com. >> >> >> -- >> This SF.net email is sponsored by: >> SourcForge Community >> SourceForge wants to tell your story. >> http://p.sf.net/sfu/sf-spreadtheword >> ___ >> iText-questions mailing list >> iText-questions@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/itext-questions >> >> Buy the iText book: http://www.1t3xt.com/docs/book.php >> >> >> -- >> Leonard Rosenthol >> PDF Standards Architect >> Adobe Systems Incorporated >> >> -- >> This SF.net email is sponsored by: >> SourcForge Community >> SourceForge wants to tell your story. >> http://p.sf.net/sfu/sf-spreadtheword >> ___ >> iText-questions mailing list >> iText-questions@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/itext-questions >> >> Buy the iText book: http://www.1t3xt.com/docs/book.php >> >> > > -- > View this message in co
[iText-questions] acroform spanning multiple pages
Hi, I am not understanding something fundamental here. When I create an Acroform across multiple pages, it always renders the fields on the last page only. I use 2 examples, one from the book (with modifications to increase rows), and one of my own. They both demonstrate my problem. Dan import java.io.BufferedReader; import java.io.FileOutputStream; import java.io.FileReader; import java.io.File; import java.io.IOException; import java.util.StringTokenizer; import java.awt.Color; import com.lowagie.text.*; import com.lowagie.text.pdf.*; import com.lowagie.text.pdf.events.*; public class PdfTests implements PdfPTableEvent { /** * Creates an instance of an Event to add a field. */ public PdfTests() { } public static void main(String[] args) { test1(); test2(); } public static void test2() { try { Document document = new Document(); int ndx = 0; File f = new File("d:\\jobs\\ipdf\\pdftest-" + ndx + ".pdf"); while (f.exists()) { ndx++; f = new File("d:\\jobs\\ipdf\\pdftest-" + ndx + ".pdf"); } PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(f)); document.open(); PdfFormField parent = PdfFormField.createEmpty(writer); parent.setFieldName("parent"); for (int i = 0; i < 3; i++) { Paragraph p = new Paragraph("Page " + i); document.add(p); TextField tf = new TextField(writer, new Rectangle(0, 0, 0, 0), "hidden" + i); tf.setText("dan"); tf.setOptions(TextField.HIDDEN); parent.addKid(tf.getTextField()); String options[] = { "English", "French", "Dutch", "German" }; PdfFormField combo = PdfFormField.createCombo(writer, true, options, 0); combo.setWidget(new Rectangle(80 * i + 40, 780, 80 * i + 120, 800), PdfAnnotation.HIGHLIGHT_INVERT); combo.setFieldName("language" + i); parent.addKid(combo); document.newPage(); } PushbuttonField button1 = new PushbuttonField(writer, new Rectangle(150, 560, 200, 590), "BUTTON1"); button1.setBackgroundColor(Color.LIGHT_GRAY); button1.setText("POST"); button1.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT); PdfFormField submit1 = button1.getField(); submit1.setAction(PdfAction.createSubmitForm( "http://127.0.0.1/testpost.php";, null, PdfAction.SUBMIT_HTML_FORMAT | PdfAction.SUBMIT_COORDINATES)); parent.addKid(submit1); writer.addAnnotation(parent); document.close(); } catch (Exception e) { e.printStackTrace(); } } /** * Generates a learning agreement form. * * @param args *no arguments needed here */ public static void test1() { System.out.println("Chapter 17: example Learning Agreement"); System.out.println("-> Creates a learning agreement form in PDF;"); System.out.println("-> jars needed: iText.jar"); System.out.println("-> resulting PDF: learning_agreement.pdf"); // step 1: creation of a document-object Document document = new Document(); try { // step 2: // we create a writer PdfWriter writer = PdfWriter.getInstance( // that listens to the document document, // and directs a PDF-stream to a file new FileOutputStream("d:\\jobs\\ipdf\\pdftests.pdf")); FieldPositioningEvents fpe = new FieldPositioningEvents(); writer.setPageEvent(fpe); // step 3: we open the document document.open(); StringBuffer js = new StringBuffer( "var code = new Array();\nvar name = new Array();\nvar credits = new Array();\n"); StringBuffer items = new StringBuffer("''"); String line; int i = 0; for (int j = 0; j < 116; j++) { line = "CS" + j + ";COMP SCI " + j + ";3"; StringTokenizer js_courses = new StringTokenizer(line, ";"); line = js_courses.nextToken(); items.append(", '").append(line).append("'"); js.append("code[").append(i).append("] = '"); js.append(line).append("';\n"); js.append("name[").append(i).append("] = '"); js.append(js_courses.nextToken()).append("';\n"); js.append("
Re: [iText-questions] RtfShape and open office
If you are saving the document from OpenOffice I'd suggest asking on their message boards. Howard Shank From: Benoit Dupont To: itext-questions@lists.sourceforge.net Sent: Thursday, January 22, 2009 9:44:11 AM Subject: [iText-questions] RtfShape and open office Hello, I want to add a RTFshape at the end of a rtf document, but when I save it with OpenOffice, it loose some informations and my shape dissapear. Anyone know how to fix this ? fait de votre vie virtuelle une véritable fête ! Windows Live . -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] iTextDotNet & FIPS
FWIW: FIPS isn't new - it's been around for MANY years. In addition, there are multiple variants of FIPS... Leonard On 1/22/09 3:31 PM, "David Thielen" wrote: Hi; The government has a new security standard called FIPS. One of our customers turned on their implementation of FIPS and with iTextDotNet (not the Java version) we now get the following - and we do not do any encryption of the PDF. It runs fine if FIPS is not turned on. Any ideas - thanks - dave Exception: Error serializing value 'ExceptionConverter: java.security.NoSuchAlgorithmException: java.lang.InstantiationException: com.ms.vjsharp.security.provider.MD5' of type 'com.lowagie.text.ExceptionConverter.' Inner Exception: System.Runtime.Serialization.SerializationException: Type 'com.lowagie.text.ExceptionConverter' in Assembly 'iText, Version=1.4.1.2, Culture=neutral, PublicKeyToken=82be440d6061a22f' is not marked as serializable. at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter) at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter) at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck) at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck) at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph) at System.Web.UI.ObjectStateFormatter.SerializeValue(SerializerBinaryWriter writer, Object value) -- Leonard Rosenthol PDF Standards Architect Adobe Systems Incorporated -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Removing a signature thoroughly (acroFields.removeField not sufficient?)
You can't use a Stamper, AFAIK. It always does an incremental update save. Why would you want to encrypt files in a DMS? Why not use the native DRM features of the DMS to secure the files? Leonard On 1/22/09 3:31 PM, "Starke, Rico" wrote: Hi, thanks for your quick reply! Can you provide more information on how to do a full save with iText after removing the signature field? What I do right now is: InputStream signedFileStream = // FileInputStream for a temporary java.io.File OutputStream resultFileStream = // FileOutputStream for a different temporary File PdfReader reader = new PdfReader(signedFileStream); AcroFields acroFields = reader.getAcroFields(); acroFields.removeField("my_signature_name"); PdfStamper stamper = new PdfStamper(reader, resultFileStream); stamper.close(); reader.close(); We want to use Acrobat Pro v8 to apply password protection to pdf files stored in a document management system, and Acrobat displays a message that this is impossible for signed/certified documents. That's why we tried to remove the signature programmatically, but setting password protection still fails with the same message. Best regards, Rico _ Rico Starke / Capgemini sd&m / Hamburg Tel: +49 40 254491-451 / www.de.capgemini-sdm.com Fax: +49 40 254491-11 / mailto:rico.sta...@capgemini-sdm.com Capgemini sd&m AG, Lübecker Straße 128, 22087 Hamburg Zusammen. Für nachhaltigen Erfolg. _ Vorstand: Edmund Küpper (Vorsitzender), Burkhard Kehrbusch, Rüdiger Azone, Dr. Uwe Dumslaff, Kai Grambow, Dr. Michael Rading, Josef Ranner Aufsichtsrat: Pierre Hessler (Vorsitzender) Sitz und Amtsgericht: München HRB 126057 -Ursprüngliche Nachricht- Von: Leonard Rosenthol [mailto:lrose...@adobe.com] Gesendet: Donnerstag, 22. Januar 2009 13:15 An: Post all your questions about iText here Betreff: Re: [iText-questions] Removing a signature thoroughly (acroFields.removeField not sufficient?) Why would you want to remove a signature? And do you have the rights to do so (eg. Are you the signatory)? After removing the field, be sure to do a FULL save on the PDF and not an incremental one. Leonard On 1/22/09 12:29 PM, "Starke, Rico" wrote: Hi, I have a problem removing a signature from a pdf file with iText. Can someone help me? I remove the signature with acroFields.removeField and write the document back to disk using the pdfstamper. Now the signature is gone (acrobat says there are no signatures in the newly written document), but I still cannot change the security policy of the document. What I want to do is to open File->Properties in Acrobat Pro v8, go to the Security tab and choose "Password Protection" in the combobox. Yet, Acrobat shows a message "the security policy cannot be changed because the document is signed or certified", although there are no security restrictions applied to the document (as displayed on the Security of the properties dialog), and although all signatures have been removed. Note: I'm using the German version of Acrobat, so some of my translations given above may not match the english version exactly. Any ideas how to remove this remainder of the signature with itext? I can provide more code snippets, acrobat screenshots or example pdf files if that helps. Kind regards, Rico Starke This e-mail and any attachment thereto may contain confidential information and/or information protected by intellectual property rights for the exclusive attention of the intended addressees named above. Any access of third parties to this e-mail is unauthorised. Any use of this e-mail by unintended recipients such as total or partial copying, distribution, disclosure etc. is prohibited and may be unlawful. When addressed to our clients the content of this e-mail is subject to the General Terms and Conditions of GL's Group of Companies applicable at the date of this e-mail. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. GL's Group of Companies does not warrant and/or guarantee that this message at the moment of receipt is authentic, correct and its communication free of errors, interruption etc. -- Leonard Rosenthol PDF Standards Architect Adobe Systems Incorporated -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php This e-mail and any attachment thereto may contain confidential information and/or information protected by intellectual property rights for the
[iText-questions] RtfShape and open office
Hello, I want to add a RTFshape at the end of a rtf document, but when I save it with OpenOffice, it loose some informations and my shape dissapear. Anyone know how to fix this ? _ Découvrez vite le nouveau Hotmail ! http://www.windowslive-hotmail.com/comingsoon/fr/default.htm-- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Hi everybody
Thanx, I know that iText 1.2 is a very old version but is not my decision, i can´t determine this. This is a big company with a strict rules, so big architecture problems. I supose that the big solution is rewrite all code Thanks to all. On Thu, Jan 22, 2009 at 3:05 PM, Alexis Pigeon wrote: > Hi sylkat, > > (encontrarás una traducción al español más abajo...) > > You have to understand that iText 1.2 is 4 years old now, and no support is > given for such an old version, at least not for free. > If your company is eager to get support for a fee, please mention it on > this list, the iText developers might get in touch with you. Please note > that I'm in no way related to the iText dev-team, just a regular reader of > the list and longtime user of the library. This means that : > - I cannot guarantee that the dev-team will provide you support, even for a > fee > - I cannot provide you support > > HTH, > alexis > > Hola sylkat, > > Tienes que entender que iText 1.2 tiene más de 4 años, y no tendrás soporte > para una versión tan antigua en esta lista, al menos soporte gratis. > Si tu empresa está dispuesta a pagar para tener este tipo de soporte > específico, comentalo en esta lista, tal vez los desarrolladores de iText se > pondrán en contacto contigo. Que quede claro que no soy de la dev-team de > iText, solo soy un lector regular de la lista, y llevo unos cuantos años > usando esta librería. Esto significa que: > - no te puedo garantizar que la dev-team de iText te dará soporte, aunque > sea pagando > - no te puedo dar soporte > > Saludos, > alexis > > On 22/01/2009, sylkat wrote: > >> Hello, this is my first post, >> >> First of first, i´m a spanish man, and my english is not good. >> >> I have to migrate a application coded in java with itext.0.90. >> >> I am having a lot of problems updating the itext0.90 to itext1.2. >> >> The code is in java and the IDE is websphere, actually the app is running >> in a WAS server. >> >> I can´t update the itext library to the last version because i´m a simple >> programer and the client-company only supports itext 1.2. >> >> The problem is in the alignments of the text on the cells, with the new >> version (itext1.2) the text is not in right position. >> >> I supose that problem is in deprecated alignment methods but the >> application is very big and there are a lots of pdf´s, I'm going crazy!!! >> >> And the question is, if someone has this problem and if is there any >> solution to update itext, i´m refer to new methods of aligment, etc >> >> I have other problems but the alignments is the priority problem. >> >> Best regards to all. >> >> >> >> >> >> >> -- >> This SF.net email is sponsored by: >> SourcForge Community >> SourceForge wants to tell your story. >> http://p.sf.net/sfu/sf-spreadtheword >> ___ >> iText-questions mailing list >> iText-questions@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/itext-questions >> >> Buy the iText book: http://www.1t3xt.com/docs/book.php >> > > > > -- > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > ___ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://www.1t3xt.com/docs/book.php > -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] iTextDotNet & FIPS
Hi; The government has a new security standard called FIPS. One of our customers turned on their implementation of FIPS and with iTextDotNet (not the Java version) we now get the following - and we do not do any encryption of the PDF. It runs fine if FIPS is not turned on. Any ideas - thanks - dave Exception: Error serializing value 'ExceptionConverter: java.security.NoSuchAlgorithmException: java.lang.InstantiationException: com.ms.vjsharp.security.provider.MD5' of type 'com.lowagie.text.ExceptionConverter.' Inner Exception: System.Runtime.Serialization.SerializationException: Type 'com.lowagie.text.ExceptionConverter' in Assembly 'iText, Version=1.4.1.2, Culture=neutral, PublicKeyToken=82be440d6061a22f' is not marked as serializable. at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter) at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter) at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck) at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck) at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph) at System.Web.UI.ObjectStateFormatter.SerializeValue(SerializerBinaryWriter writer, Object value) -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Removing a signature thoroughly (acroFields.removeField not sufficient?)
Hi, thanks for your quick reply! Can you provide more information on how to do a full save with iText after removing the signature field? What I do right now is: InputStream signedFileStream = // FileInputStream for a temporary java.io.File OutputStream resultFileStream = // FileOutputStream for a different temporary File PdfReader reader = new PdfReader(signedFileStream); AcroFields acroFields = reader.getAcroFields(); acroFields.removeField("my_signature_name"); PdfStamper stamper = new PdfStamper(reader, resultFileStream); stamper.close(); reader.close(); We want to use Acrobat Pro v8 to apply password protection to pdf files stored in a document management system, and Acrobat displays a message that this is impossible for signed/certified documents. That's why we tried to remove the signature programmatically, but setting password protection still fails with the same message. Best regards, Rico _ Rico Starke / Capgemini sd&m / Hamburg Tel: +49 40 254491-451 / www.de.capgemini-sdm.com Fax: +49 40 254491-11 / mailto:rico.sta...@capgemini-sdm.com Capgemini sd&m AG, Lübecker Straße 128, 22087 Hamburg Zusammen. Für nachhaltigen Erfolg. _ Vorstand: Edmund Küpper (Vorsitzender), Burkhard Kehrbusch, Rüdiger Azone, Dr. Uwe Dumslaff, Kai Grambow, Dr. Michael Rading, Josef Ranner Aufsichtsrat: Pierre Hessler (Vorsitzender) Sitz und Amtsgericht: München HRB 126057 -Ursprüngliche Nachricht- Von: Leonard Rosenthol [mailto:lrose...@adobe.com] Gesendet: Donnerstag, 22. Januar 2009 13:15 An: Post all your questions about iText here Betreff: Re: [iText-questions] Removing a signature thoroughly (acroFields.removeField not sufficient?) Why would you want to remove a signature? And do you have the rights to do so (eg. Are you the signatory)? After removing the field, be sure to do a FULL save on the PDF and not an incremental one. Leonard On 1/22/09 12:29 PM, "Starke, Rico" wrote: Hi, I have a problem removing a signature from a pdf file with iText. Can someone help me? I remove the signature with acroFields.removeField and write the document back to disk using the pdfstamper. Now the signature is gone (acrobat says there are no signatures in the newly written document), but I still cannot change the security policy of the document. What I want to do is to open File->Properties in Acrobat Pro v8, go to the Security tab and choose "Password Protection" in the combobox. Yet, Acrobat shows a message "the security policy cannot be changed because the document is signed or certified", although there are no security restrictions applied to the document (as displayed on the Security of the properties dialog), and although all signatures have been removed. Note: I'm using the German version of Acrobat, so some of my translations given above may not match the english version exactly. Any ideas how to remove this remainder of the signature with itext? I can provide more code snippets, acrobat screenshots or example pdf files if that helps. Kind regards, Rico Starke This e-mail and any attachment thereto may contain confidential information and/or information protected by intellectual property rights for the exclusive attention of the intended addressees named above. Any access of third parties to this e-mail is unauthorised. Any use of this e-mail by unintended recipients such as total or partial copying, distribution, disclosure etc. is prohibited and may be unlawful. When addressed to our clients the content of this e-mail is subject to the General Terms and Conditions of GL's Group of Companies applicable at the date of this e-mail. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. GL's Group of Companies does not warrant and/or guarantee that this message at the moment of receipt is authentic, correct and its communication free of errors, interruption etc. -- Leonard Rosenthol PDF Standards Architect Adobe Systems Incorporated -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php This e-mail and any attachment thereto may contain confidential information and/or information protected by intellectual property rights for the exclusive attention of the intended addressees named above. Any access of third parties to this e-mail is unauthorised. Any use of this e-mail by unintended recipients such as total or partial copying, distribution, disclosure etc. is proh
Re: [iText-questions] Hi everybody
Hi sylkat, (encontrarás una traducción al español más abajo...) You have to understand that iText 1.2 is 4 years old now, and no support is given for such an old version, at least not for free. If your company is eager to get support for a fee, please mention it on this list, the iText developers might get in touch with you. Please note that I'm in no way related to the iText dev-team, just a regular reader of the list and longtime user of the library. This means that : - I cannot guarantee that the dev-team will provide you support, even for a fee - I cannot provide you support HTH, alexis Hola sylkat, Tienes que entender que iText 1.2 tiene más de 4 años, y no tendrás soporte para una versión tan antigua en esta lista, al menos soporte gratis. Si tu empresa está dispuesta a pagar para tener este tipo de soporte específico, comentalo en esta lista, tal vez los desarrolladores de iText se pondrán en contacto contigo. Que quede claro que no soy de la dev-team de iText, solo soy un lector regular de la lista, y llevo unos cuantos años usando esta librería. Esto significa que: - no te puedo garantizar que la dev-team de iText te dará soporte, aunque sea pagando - no te puedo dar soporte Saludos, alexis On 22/01/2009, sylkat wrote: > > Hello, this is my first post, > > First of first, i´m a spanish man, and my english is not good. > > I have to migrate a application coded in java with itext.0.90. > > I am having a lot of problems updating the itext0.90 to itext1.2. > > The code is in java and the IDE is websphere, actually the app is running > in a WAS server. > > I can´t update the itext library to the last version because i´m a simple > programer and the client-company only supports itext 1.2. > > The problem is in the alignments of the text on the cells, with the new > version (itext1.2) the text is not in right position. > > I supose that problem is in deprecated alignment methods but the > application is very big and there are a lots of pdf´s, I'm going crazy!!! > > And the question is, if someone has this problem and if is there any > solution to update itext, i´m refer to new methods of aligment, etc > > I have other problems but the alignments is the priority problem. > > Best regards to all. > > > > > > > -- > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > ___ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://www.1t3xt.com/docs/book.php > -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Removing a signature thoroughly (acroFields.removeField not sufficient?)
Why would you want to remove a signature? And do you have the rights to do so (eg. Are you the signatory)? After removing the field, be sure to do a FULL save on the PDF and not an incremental one. Leonard On 1/22/09 12:29 PM, "Starke, Rico" wrote: Hi, I have a problem removing a signature from a pdf file with iText. Can someone help me? I remove the signature with acroFields.removeField and write the document back to disk using the pdfstamper. Now the signature is gone (acrobat says there are no signatures in the newly written document), but I still cannot change the security policy of the document. What I want to do is to open File->Properties in Acrobat Pro v8, go to the Security tab and choose "Password Protection" in the combobox. Yet, Acrobat shows a message "the security policy cannot be changed because the document is signed or certified", although there are no security restrictions applied to the document (as displayed on the Security of the properties dialog), and although all signatures have been removed. Note: I'm using the German version of Acrobat, so some of my translations given above may not match the english version exactly. Any ideas how to remove this remainder of the signature with itext? I can provide more code snippets, acrobat screenshots or example pdf files if that helps. Kind regards, Rico Starke This e-mail and any attachment thereto may contain confidential information and/or information protected by intellectual property rights for the exclusive attention of the intended addressees named above. Any access of third parties to this e-mail is unauthorised. Any use of this e-mail by unintended recipients such as total or partial copying, distribution, disclosure etc. is prohibited and may be unlawful. When addressed to our clients the content of this e-mail is subject to the General Terms and Conditions of GL's Group of Companies applicable at the date of this e-mail. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. GL's Group of Companies does not warrant and/or guarantee that this message at the moment of receipt is authentic, correct and its communication free of errors, interruption etc. -- Leonard Rosenthol PDF Standards Architect Adobe Systems Incorporated -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] How to read data from pdf
Read WHAT? PDF data structures? Text on a page? Images on a page? Form data? Other? Leonard On 1/22/09 8:20 AM, "s.raj...@birlasoft.com" wrote: Hi, Am S.Rajesh Kumar working in this organization and want to know the logic that is used to READ the data that is present in a PDF file using itext. Can u please forward me the code or logic through which we can get this functionality? Regards S.Rajesh Kumar. * "This message and any attachments are solely for the intended recipient and may contain Birlasoft confidential or privileged information. If you are not the intended recipient,any disclosure,copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail at (administra...@birlasoft.com) and permanently delete this message and any attachments. Thank you." * -- Leonard Rosenthol PDF Standards Architect Adobe Systems Incorporated -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] Hi everybody
Hello, this is my first post, First of first, i´m a spanish man, and my english is not good. I have to migrate a application coded in java with itext.0.90. I am having a lot of problems updating the itext0.90 to itext1.2. The code is in java and the IDE is websphere, actually the app is running in a WAS server. I can´t update the itext library to the last version because i´m a simple programer and the client-company only supports itext 1.2. The problem is in the alignments of the text on the cells, with the new version (itext1.2) the text is not in right position. I supose that problem is in deprecated alignment methods but the application is very big and there are a lots of pdf´s, I'm going crazy!!! And the question is, if someone has this problem and if is there any solution to update itext, i´m refer to new methods of aligment, etc I have other problems but the alignments is the priority problem. Best regards to all. -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] Removing a signature thoroughly (acroFields.removeField not sufficient?)
Hi, I have a problem removing a signature from a pdf file with iText. Can someone help me? I remove the signature with acroFields.removeField and write the document back to disk using the pdfstamper. Now the signature is gone (acrobat says there are no signatures in the newly written document), but I still cannot change the security policy of the document. What I want to do is to open File->Properties in Acrobat Pro v8, go to the Security tab and choose "Password Protection" in the combobox. Yet, Acrobat shows a message "the security policy cannot be changed because the document is signed or certified", although there are no security restrictions applied to the document (as displayed on the Security of the properties dialog), and although all signatures have been removed. Note: I'm using the German version of Acrobat, so some of my translations given above may not match the english version exactly. Any ideas how to remove this remainder of the signature with itext? I can provide more code snippets, acrobat screenshots or example pdf files if that helps. Kind regards, Rico Starke This e-mail and any attachment thereto may contain confidential information and/or information protected by intellectual property rights for the exclusive attention of the intended addressees named above. Any access of third parties to this e-mail is unauthorised. Any use of this e-mail by unintended recipients such as total or partial copying, distribution, disclosure etc. is prohibited and may be unlawful. When addressed to our clients the content of this e-mail is subject to the General Terms and Conditions of GL's Group of Companies applicable at the date of this e-mail. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. GL's Group of Companies does not warrant and/or guarantee that this message at the moment of receipt is authentic, correct and its communication free of errors, interruption etc. -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] How to read data from pdf
Hi Rajesh, On 22/01/2009, s.raj...@birlasoft.com wrote: > > Hi, > > Am S.Rajesh Kumar working in this organization and want to know > the logic that is used to READ the data that is present in a PDF file using > itext. Can u please forward me the code or logic through which we can get > this functionality? > Before Bruno does, let me ask you a counter-question : how deep is blue? Sure you have already read iText documentation and FAQ, and you can't have missed this entry: < http://1t3xt.info/tutorials/faq.php?branch=faq.abc&node=1st > Cheers, alexis -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] HTMLWorker & Alignment
Wow! In all this time, I never considered that HTMLWorker would be working any differently than a browser would (which ignores all white space outside of tags). So basically all white space between tags must be eliminated. That's what I'll have to rework our editor for then, thanks! I did not find this noted in the book or anywhere else online. Did I miss something? Any suggestions on how to accomplish this as it won't be easy as you often have tags within tags. By the way, the HTMLWorker only generates about 10% of the content within the program. The rest is all using normal Chunks, Paragraphs, etc. The only problem then I see is that the Paragraph tag only creates one carriage return instead of two. See http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_paragraphs2 for what I mean. I erased all the whitepace and newlines in my example and it came out much better. What I thought was automatic paragraph indention was actually extra whitespace the editor added to make the source code look clean. Thanks again for the clarity! I finally have something I can start working on. Dominic 1T3XT info wrote: > > Dominic Maricic wrote: >> HTML Input: http://www.nabble.com/file/p21535772/example.html > > Have a look at the attached screenshot. Plenty of spaces and newlines in > the source material. Whitespace between tags that are supposed to > contain text isn't ignored by the SimpleXMLParser used by iText. > -- > This answer is provided by 1T3XT BVBA > http://www.1t3xt.com/ - http://www.1t3xt.info > > > -- > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > ___ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://www.1t3xt.com/docs/book.php > -- View this message in context: http://www.nabble.com/HTMLWorker---Alignment-tp21474244p21593703.html Sent from the iText - General mailing list archive at Nabble.com. -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] How to read data from pdf
Hi, Am S.Rajesh Kumar working in this organization and want to know the logic that is used to READ the data that is present in a PDF file using itext. Can u please forward me the code or logic through which we can get this functionality? Regards S.Rajesh Kumar. * "This message and any attachments are solely for the intended recipient and may contain Birlasoft confidential or privileged information. If you are not the intended recipient,any disclosure,copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail at (administra...@birlasoft.com) and permanently delete this message and any attachments. Thank you." *-- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php