[iText-questions] iTextSharp 5.0.2
Hello everyone: I'm completely new to iTextSharp and I'm trying to convert some html files to pdf. The problem is that almost every single example that I found is referencing classes from past iText releases. I would like to use the new release but I simply cannot find documentation and/or examples for this new release. BTW I'm stuck with my simple test: CODE // Create the document iTextSharp.text.Document idocument = new iTextSharp.text.Document(iTextSharp.text.PageSize.A4); // Create the output file iTextSharp.text.pdf.PdfWriter.GetInstance(idocument, new FileStream(d:\\watch\\iTextSharpTest.pdf, FileMode.Create)); try { // Open the document idocument.Open(); // Parse the document iTextSharp.text.html.simpleparser.HTMLWorker.ParseToList(new StreamReader(FileToParse), null); // HERE is the problem, I don't know what to do next } catch (Exception ex) { // TODO: Deal with the exception } finally { if (idocument.IsOpen()) idocument.Close(); } END CODE Thank you for your help. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] What action is requred in terms of License
Original-Nachricht Datum: Fri, 7 May 2010 14:19:41 +0200 Von: TvT tvtre...@nepatec.de An: Post all your questions about iText here itext-questions@lists.sourceforge.net Betreff: Re: [iText-questions] What action is requred in terms of License Just read the whole thread and it sounded like the internal discussion we had in our company as well. As this isn't a technical discussion, I have asked sales to take a look at the thread. I think some points need to be clarified as I'm reading things that are taken out of their context. On a personal note: when I read about people who say let's start a fork, I feel the urge to give the fatherly advice not to make the same mistake I made by spending day and night, without taking any holiday whatsoever, working for free for over ten years for people who don't realize what it involves to provide good software. Unfortunately, that fatherly advice could be misinterpreted. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] Where can I find the character maps for the embedded fonts (Helvetica...)?
That worked, thanks. What tool/site do you use to see all the characters/symbols for a given font? I used Windows Character map and tried 25AC and 25CF that didn't work. Fred On Mon, May 10, 2010 at 22:19, Klas Lindbäck klas.lindb...@val.se wrote: Have you tried Unicode 2022 (bullet) and 2013 or 2014 (dash)? /Klas Fred Janon skrev 20:59: I need to insert a big black bullet and a fat horizontal dash in the middle of some text in Helvetica 10pt to put a legend next to ajFreeChart chart. I need the Unicode for these 2 characters and cannot find them. Since Helvetica is embedded, I can't use the Windows Character Map tool, I did a search with an online character map and cannot find any. I don't want to have to use another font, that would make my files bigger for only 2 characters used! Any hint or tip would be appreciated. Thanks Fred -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] how to detect remote links in a PDF ?
From: lrose...@adobe.com To: itext-questions@lists.sourceforge.net Date: Mon, 10 May 2010 19:01:15 -0700 Subject: Re: [iText-questions] how to detect remote links in a PDF ? There is no such thing as canonical PDF - anything that complies with the PDF specification is valid. That allows for various uses ofcompression, ASCII encoding, etc. Well, not really. If there are rules for the PDF standard then you could in fact create some alternative representation- it could be super big, verbose, complicated, etc but it may be a useful intermediate form for various types of work such as debug or adhoc editing where you don't want to waste time writing custom code to do something simple. No argument! BUT an intermediate format (or an alternative format) and a canonical format are VERY VERY different things... Well, at least canonical would be something like pdf that doesn't do anything fancy and has rules for otherwise arbitary choices then you could do simple things like ASCII searches and maybe binary diffs to test for pixel equality etc. There are many folks who have developed alternative representations of PDF, whether in XML or other formats, including Adobe ourselves. For example, Adobe has a project codenamed Mars on our Labs site () which describes an XML+ZIP-based representation of PDF. It supports all of the features of PDF from PDF 1.7. We provide some tooling for Acrobat Reader, and you are welcome to develop your own. But again, that's NOT canonical - just alternative. But that would work for the original purpose too. Maybe you should mention these on itext somewhere and refer people to them. It is hard to say you wil be accused of being biases any more than you already are and if the tools work who cares if you are biased? LOL . From your terse descriptions, that even sounds like a sane and workable approach, not what I would have expected ( sorry, had to interject LOL). This is also not irrelevant to itext implementation as a prior thread was talking about optimizations at an algorithm level If you had some attributes of a parsed or intermediate form that make various manipulations easy, it may be a good thing for itext to parse into or even write out for other canned ( itext based or not ) tools to use. cat pdf | itext_parse_to_intmediate_form | my_itext_tool | intermediate_to_pdf -O3 new.pdf Piping can be slow but obviously you can start mashing tools together etc. That's why library such as iText exist - to provide you with higher level APIs (where possible). They are what one would use to create automated test tools, validators, etc. And many such tools already do exist - so it's definitely doable (and has been done). If you took that attitude you couldn't even hide behind but pdf is a standard since then the argument is well I have API xyz and we can do anything with it. if you use my ABC format I guess having a list would help, is there a pdf developer download somewhere with tools like this? Adobe Acrobat Professional includes a PDF validator feature as part of its Preflight module, and has since version 7. It is the only publicly available validator that I am aware of, though I have spoken to at least a half-dozen commercial PDF vendors that have told me that they have developed their own validators for their own use. There used to be two limited open source validators - JHOVE () and Multivalent (). But to my knowledge, neither is currently supported/updated. Since both were Java-based OSS, I would think you could pick them up and run with them if you wished. Ok, sounds like reasonable starting points. I'm not saying it is trivial to do any of this, but it does seem much of the traffic here never gets referred to any simple diagnostics. Leonard -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ _ Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2 -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask
Re: [iText-questions] What action is requred in terms of License
People -- Call or write to Bruno's sales agent. If the cost/benefit of what iText offers doesn't make economic sense explain to him why it makes sense for Bruno's company to agree to different terms. For example, if the up-front amount is too high because you need the revenue from your software sales explain that. I can't say he'll agree but I've spoken to him and he is a long-term veteran in software sales, who understands the economics and cycles of software, and that neither Bruno nor anybody working with him wants to put you out of business. Forking the old code-base is a bad idea for two reasons. The first, like Bruno explained, is technical complexity. The second is much worse though: think about the message it sends to open-source authors. I can't think of any worse precedent than a bunch of people who forked a GPL license (or whatever the former license was) because they were too cheap to pay reasonable licensing fees. Additionally the original code-base may have accidental IP landmines -- contributions that weren't fully licensed -- that could be a lot more expensive long-term if your product does well. That was a problem with Linux early on, though many don't remember. Linus's team (and Red Hat and others), like Bruno, cleaned up the code. There were still legal challenges that cost a fortune but IBM, Novell, and others (thanks Google!) bore the brunt of the financial and logistical cost to blast them away; they're unlikely to extend that favor, which literally cost tens of millions of dollars, to people who refuse to pay reasonable licensing fees on iText. A third reason that needs explaining, more mushy but still legitimate, is Bruno himself. He's incredibly modest and soft spoken but has a young child and is working three jobs. I don't know how old many of the people writing are but there's a certain amount of fairness and respect to him that's being overlooked. As we get older and develop lives we should be paid for our work; able to live off it. I personally think Bruno should consider avoiding the headaches and just selling the whole code-base, then working for, Adobe or another large software company. Any of the major software vendors -- especially Adobe, MS, Apple, and probably Google, IBM, and others -- would happily have him and give him support, allow him to work a schedule that's more reasonable, and financial security. But he doesn't do that because of his devotion to open-source. Bruno and his team have worked hard and turned out a great product. Talk to his sales agent and listen to what he has to say. If the fees will never work for your product you may want to ask them why: you stand to get some good advice on software fees (hint: sometimes higher fees actually increase sales, which is counter-intuitive but well documented). Finally, look at Adobe's fee structure for client and server-side and embedded PDF generation technology. Michael. On Tue, May 11, 2010 at 3:18 AM, Bruno Lowagie br...@lowagie.com wrote: Original-Nachricht Datum: Fri, 7 May 2010 14:19:41 +0200 Von: TvT tvtre...@nepatec.de An: Post all your questions about iText here itext-questions@lists.sourceforge.net Betreff: Re: [iText-questions] What action is requred in terms of License Just read the whole thread and it sounded like the internal discussion we had in our company as well. As this isn't a technical discussion, I have asked sales to take a look at the thread. I think some points need to be clarified as I'm reading things that are taken out of their context. On a personal note: when I read about people who say let's start a fork, I feel the urge to give the fatherly advice not to make the same mistake I made by spending day and night, without taking any holiday whatsoever, working for free for over ten years for people who don't realize what it involves to provide good software. Unfortunately, that fatherly advice could be misinterpreted. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
[iText-questions] Font problem when viewing pdf with PdfTemplate's
Hello, I'm creating a PDF document with a PdfTemplate. Everything works well except that the font used in the PdfTemplate is displayed ugly within Acrobat. The document prints correctly however. Also, when I add text to the document with the same font as is used within the template, this is also displayed ugly. Other fonts are displayed correctly. The following code summaries my situation: Document doc = new Document(); PdfWriter writer = PdfWriter.GetInstance(doc, os); writer.PdfVersion = PdfWriter.VERSION_1_5; writer.ViewerPreferences = PdfWriter.PrintScalingNone; writer.PageEvent = new Listener(); doc.Open(); document.Add(new Paragraph(20, ander font)); document.Add(new Paragraph(20, template font, font)); // georgia font from the template doc.Close(); class Listener : PdfPageEventHelper { PdfImportedPage page; public override void OnOpenDocument(PdfWriter writer, Document document) { PdfReader reader = new PdfReader(template.pdf); // a pdf document containing georgia font page = writer.GetImportedPage(reader, 1); } public override void OnEndPage(PdfWriter writer, Document document) { PdfContentByte cb = writer.DirectContent; cb.AddTemplate(page); } } I've attached two documents: one with the PdfTemplate and one without (with the writer.PageEvent commented). This to show the actual problem... Does anybody knows why the font that is used within the template is not displayed correctly? Can this be solved within iText or is this perhaps an Acrobat problem? As you can see I'm using iTextSharp, version 5.0.1.1. I'm also using Acrobat Professional, version 9.3.2. Thanks in advance, Fons http://n4.nabble.com/file/n2173792/without_template.pdf without_template.pdf http://n4.nabble.com/file/n2173792/with_template.pdf with_template.pdf -- View this message in context: http://itext-general.2136553.n4.nabble.com/Font-problem-when-viewing-pdf-with-PdfTemplate-s-tp2173792p2173792.html Sent from the iText - General mailing list archive at Nabble.com. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] Font problem when viewing pdf with PdfTemplate's
Fons wrote: I'm creating a PDF document with a PdfTemplate. Everything works well except that the font used in the PdfTemplate is displayed ugly within Acrobat. Does anybody knows why the font that is used within the template is not displayed correctly? Can this be solved within iText or is this perhaps an Acrobat problem? I've looked at the two PDFs and I didn't see any ugly font, BUT: the first PDF (without the template) contains an embedded subset of the font Georgia (Ansi encoding). That's the correct way to use a font. The second PDF however, contains: - an embedded subset of Georgia (Ansi) - an embedded subset of Georgia (CID / Identity-H) - Georgia NOT EMBEDDED (Ansi) - Georgia-Bold NOT EMBEDDED (Ansi) The two first fonts are OK, but as the two following fonts are not embedded, my Adobe Reader had to look for the font Georgia on my Operating System. Fortunately, I have that font on my OS, so the PDF is shown correctly, but people who don't have that font on their OS will see another (maybe a very ugly) font. I think you've made a mistake when creating the font. Why don't you just create one BaseFont using Identity-H to be used for all the text in your document? Especially using an unembedded font is not recommended. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] What action is requred in terms of License
Michael Olenick wrote: People -- Call or write to Bruno's sales agent. Thanks! I've had a speed course in economics at http://www.vlerick.com/ last year, discovering there's more to the IT business than writing code. It's all about the business model, not just the business model used for iText, but also the business model of the end user/developer. You've explained that very well. We are using a license (be it the AGPL, or a commercial license) because that's better for everyone. If you choose the AGPL, you share your code. If you choose the commercial license, you share some of your revenue. The situation before the AGPL was not healthy. At some point, I had the impression I was being suffocated: plenty of people were mailing me personally, DEMANDING a solution for their problem. I didn't have any time to think about new code anymore, and that's not good: a good product has to offer continuity! Recently, I attended an event where I had a talk with a CEO of a company who had been using iText for years. He said that he was now looking for another free product because he could no longer use iText. I asked him how much switching to another library would cost in terms of development, and what he would do if that other free library decided to change its license too (because it's easy to run a F/OSS product if you're not successful, but it's a lot of hard work as soon as people actually start using it). He hadn't thought about that yet, but I saw that he realized that would probably cost him far more than to have another chat with sales. So it goes... -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] What action is requred in terms of License
Date: Tue, 11 May 2010 15:49:47 +0200 From: i...@1t3xt.info To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] What action is requred in terms of License Michael Olenick wrote: People -- Call or write to Bruno's sales agent. Thanks! I've had a speed course in economics at http://www.vlerick.com/ last year, discovering there's more to the IT business than writing code. It's all about the business model, not just the business model used for iText, but also the business model of the end user/developer. I think many of the issues we come up against are actually due to thinking about business before technological issues. I won't mention any names, but if you know of any large publically traded companies that derive significant revenue due to PDF they then this may or may not relate to those entities. Walled gardens have most recently been tried by cell phone companies and if you search SEC filings for such terms, there as of late has been a recognition that they are bad for business- users and developers get mad. So, to the extent business comes before making useful products, something to consider. We all want to make money but creating artificial barriers and designing products that lock people into fixed vendors or ways of thinking is rarely helpful. _ Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1 -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] What action is requred in terms of License
I'm not trying to vote for a fork just pointing out that someone in this thread (or recent thread) said they DID fork; so if your thinking of doing the same you might want to share resources with one that already did the fork. -Dave On Tue, May 11, 2010 at 7:49 AM, 1T3XT info i...@1t3xt.info wrote: Michael Olenick wrote: People -- Call or write to Bruno's sales agent. Thanks! I've had a speed course in economics at http://www.vlerick.com/ last year, discovering there's more to the IT business than writing code. It's all about the business model, not just the business model used for iText, but also the business model of the end user/developer. You've explained that very well. We are using a license (be it the AGPL, or a commercial license) because that's better for everyone. If you choose the AGPL, you share your code. If you choose the commercial license, you share some of your revenue. The situation before the AGPL was not healthy. At some point, I had the impression I was being suffocated: plenty of people were mailing me personally, DEMANDING a solution for their problem. I didn't have any time to think about new code anymore, and that's not good: a good product has to offer continuity! Recently, I attended an event where I had a talk with a CEO of a company who had been using iText for years. He said that he was now looking for another free product because he could no longer use iText. I asked him how much switching to another library would cost in terms of development, and what he would do if that other free library decided to change its license too (because it's easy to run a F/OSS product if you're not successful, but it's a lot of hard work as soon as people actually start using it). He hadn't thought about that yet, but I saw that he realized that would probably cost him far more than to have another chat with sales. So it goes... -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] Alignment / Scaling problem when merging XFA data
Sounds like you have a form with an XFA form that has an AcroForm counter-part. In that case, iText ignores the XFA and fill out the AcroForm fields which have a slightly different alignment, scaling, etc. I think I've found a way around this problem, but unfortunately I seem to have uncovered another problem at the same time. Firstly, my workaround for mergeXfaData() not actually merging XFA data if an FDF form is also present. The solution was to upgrade to version 5.0.2, then I could get the XFA form and explicitly fill it in - with code like this: InputSource is = new InputSource(new StringReader(passedXfaDataString)); is.setEncoding(UTF-8); ByteArrayOutputStream baos = new ByteArrayOutputStream(); PdfStamper stamper = new PdfStamper(passedPdfReader, baos); XfaForm xfaForm = stamper.getAcroFields().getXfa(); xfaForm.fillXfaForm(is); stamper.close(); return baos.toByteArray(); However, the next step I need to do is encrypt the final PDF. From reading Paulo's replies when this question pops up, I know the encryption needs to be done as soon as the stamper is created. so the code should look like: ... PdfStamper stamper = new PdfStamper(passedPdfReader, baos); stamper.setEncryption(PdfWriter.ENCRYPTION_AES_128, , , PdfWriter.ALLOW_PRINTING); XfaForm xfaForm = stamper.getAcroFields().getXfa(); xfaForm.fillXfaForm(is); ... However, this doesn't do what I'd expect. Instead it ignores all the filled XFA values leaving blank fields in the final PDF. I've tried all 4 of the various similar setEncryption() methods on PdfStamper, but they all do the same thing - they cause the filled XFA data values to not appear in the final PDF. If setEncryption() is commented out, final PDF comes out fine, but unsecured. If setEncryption() (in any of the 4 similar variants) is enabled, the final PDF comes out secured, but with no XFA data filled in. I've also tried using stamper.getWriter().setEncryption(byte[], byte[], int, int), using null byte arrays rather than empty strings for the passwords. But that also did the same. The variant of setEncryption() which takes a Certificate array hasn't been tried, since I don't have any public certificates to use. Has anyone got any suggestions to get around encryption causing all the form data to be thrown away? Thanks for your help, Adam Carless The contents of this message and any attachments are confidential and are intended for the use of the persons to whom it is addressed. If you are not the intended recipient, you should not copy, forward, use or alter the message in any way, nor disclose its contents to any other person. Please notify the sender immediately and delete the e-mail from your system, if you so wish you can contact us on +44 1624 688000. The sender is not responsible for any alterations that may have occurred without authorisation. Any files attached to this email will have been checked by us with virus detection software before transmission. You should carry out your own virus checks before opening any attachments, as we do not accept any liability for loss or damage which may be caused by viruses. For information regarding company registration please visit the contact page at www.hansard.com -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] how to detect remote links in a PDF ?
Well, at least canonical would be something like pdf that doesn't do anything fancy and has rules for otherwise arbitary choices then you could do simple things like ASCII searches and maybe binary diffs to test for pixel equality etc. While the ability to do ASCII searches and maybe binary diffs are goals that you desire in a file format - neither were goals that PDF had (or has) and so the design for it doesn't take either into account. If you think those should be underlying goals for PDF 2.0 (ISO 32000-2) - NOW IS THE TIME FOR YOU TO GET INVOLVED! We are still working on the next version of PDF at the ISO. ANYONE can get involved on the committee, at NO COST. Just contact your countries standards body and volunteer. (if you don't know who that is, let me know what country you reside in and I will be happy to provide a name email for you). PDF is a fully open standard. ANYONE can contribute. We WELCOME participation. BUT if you choose not to get involved, and we don't do the things you want, then you're complaints will fall on deaf ears... Leonard -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] Font problem when viewing pdf with PdfTemplate's
Thank you for your answer. Of course you're right that I should only use embedded fonts, my mistake. I've corrected this but still have the same problem... (as I also have the Georgia font installed on my system) Maybe I should not have marked the font as 'ugly'. The correct font is used, but not displayed nicely - it seems that it is written twice or so. It prints correctly, however. But I you say that you noticed no difference between the two files it's probably a problem of my machine/monitor configuration or something else. For completeness, I've attached the file with only embedded fonts but with the same problem. Thank you again, Fons http://n4.nabble.com/file/n2173928/with_template.pdf with_template.pdf -- View this message in context: http://itext-general.2136553.n4.nabble.com/Font-problem-when-viewing-pdf-with-PdfTemplate-s-tp2173792p2173928.html Sent from the iText - General mailing list archive at Nabble.com. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] how to detect remote links in a PDF ?
Leonard Rosenthol wrote: PDF is a fully open standard. ANYONE can contribute. We WELCOME participation. I'm interested! I'm going to the Adobe Pulse next week: http://events.adobe.co.uk/cgi-bin/register.cgi?country=ukeventid=9660venueid=9813 Is there somebody I can talk to about this? best regards, Bruno -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] Font problem when viewing pdf with PdfTemplate's
Fons wrote: For completeness, I've attached the file with only embedded fonts but with the same problem. Are we looking at the same font? I mean: you are talking about the text: universitair onderwijscentrum groningen, bureau van de universiteit, the phone numbers, and the address (which all look fine to me). We are NOT talking about rijksuniversiteit groningen which is a raster image (no real font) and somewhat more ugly (can be solved by using another image). Can you make a screenshot of the problem? I don't see any ugliness in the text. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
[iText-questions] How to embed Type1 Japanese fonts
I've been trying to embed some Japanese fonts, and I've found that this: Font japan = FontFactory.GetFont(KozMinPro-Regular, UniJIS-UCS2-H, BaseFont.EMBEDDED, etc. produces good text, but the font is not embedded (as expected, since CJK fonts don't embed). If I do this: Font japan = FontFactory.GetFont(c:\\windows\\fonts\\KozGoProVI-Medium.otf, BaseFont.IDENTITY_H, BaseFont.EMBEDDED, etc. the font is embedded, but the text is invisible, so presumably the characters are mismapped. It only seems to be a problem with Type1 fonts, since the same thing (second example, with IDENTITY_H) works fine with, e.g., c:\\windows\\fonts\\msgothic.ttc,1 Does anyone know the magic formula to make this work? Thanks, - Eric -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] Where can I find the character maps for the embedded fonts (Helvetica...)?
I just searched for helvetica font map in Google and clicked the top link (I got lucky!). From there I clicked the supplied link to the Full Character Map (http://www.myfonts.com/fonts/linotype/helvetica/helvetica/charmap.html). I found the characters on the 1252 codepage. /Klas Fred Janon skrev 20:59: That worked, thanks. What tool/site do you use to see all the characters/symbols for a given font? I used Windows Character map and tried 25AC and 25CF that didn't work. Fred -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] Font problem when viewing pdf with PdfTemplate's
Within the 'with_template.pdf': all but the reg logo and the text 'other font' Within the 'without_template.pdf': - the text 'ander font' is exactly the same as 'other font' from the with_template.pdf - the text 'template font' is displayed different then the 'template font' from the with_template.pdf What Acrobat version are you using? -- View this message in context: http://itext-general.2136553.n4.nabble.com/Font-problem-when-viewing-pdf-with-PdfTemplate-s-tp2173792p2173979.html Sent from the iText - General mailing list archive at Nabble.com. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] Font problem when viewing pdf with PdfTemplate's
Well, I've got exactly the same result. So it could be a matter of taste... But the problem is that the text 'template font' is different (mainly thicker and less 'tidy') compared to the 'template font' text in the 'without_template.pdf'... -- View this message in context: http://itext-general.2136553.n4.nabble.com/Font-problem-when-viewing-pdf-with-PdfTemplate-s-tp2173792p2174016.html Sent from the iText - General mailing list archive at Nabble.com. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] What action is requred in terms of License
Hi, while i agree with most of the comments but i want to add one more aspect of the picture: There are different kinds of open source libraries and i would like to differentiate in two groups (correct me if i am wrong here): 1. GPL like - when used in a project the sourcecode has to be opensourced also - thus in most cases not usable for commercial apps (then people buy a commercial license) 2. LGPL like - when used in a project the sourcecode needs not necessarily to be opensourced thus usable also for commercial apps I think there are different philosophies behind both licenses: 1. E.g. a company (or even an individual) tries to increase the usage of their library but still (financially) depend on it. In case somebody wants to use the library commercially and do not want to opensource their project they have to buy a license. Or if they want business level support or need additional features they will also buy a license. Thus the maintainer will make money out of it. 2. E.g. a big company/individual donates a project to the opensource community. It did earn money with it or not - but nobody expects to get more profit out of it. It is out of generosity, to do something for the greater good or just too good to be wasted in closed source bounds. Sometimes developers who orginally developed it 'freely' maintain it, are paid by their company for it or people contribute freely in their spare time... But it is important to point out when you decide to use a library (in a commercial setting) you have the following in mind: Decision for 1.) Normally use the library and in case of any bugs you will get support. But since one has the sourcecode it is possible to develop a quick hotfix in case of an urgent production problem. Decision for 2.) There is basically no support (in many cases there is no commercial license available). You have to take the lib 'as it is'. If something is needed YOU develop it yourself or pay somebody who does it for you. In most times there will be practically no documentation. = The money you invest you pay to your own developer who has to familiarize himself with the project, test it and in many cases there are bugs and features which are missing. So i think the problem is that iText started with the 'wrong' kind of license. Several factors of iText were like 1) style license (good documentation, good support etc.) however the license was a 2) style license. Furthermore Bruno you dedicated several years of hard work into it but didn't get much in return, due to the 2.) type license. Now however the users are not to blame (ok, maybe except for those who DEMANDED features insolently but then they didn't understand the license) - they just used the software according to the license (and in most cases didn't know that the author voluntarily worked is a** off.) Now the iText license was (understandably) changed to reflect the real world situation that somebody financially depends on it however many projects used the library under different initial conditions. So that's why many people think about forking because they also invested time to adapt the library, tested it, fixed bugs, contributed features, integrated it into their environment and stuff like that. They basically decided for license type 2.) but now it is switched to 1.) which practically wouldn't have arisen if iText started with the right license from the beginning. So now it is difficult to complain about a fork since the license change is practically forced upon them (even if it was communicated earlier). For instance what do I do if I have bug fixes for the last version of the old iText (2.1.7)? I can submit them and they will be integrated in a future release, which i currently can't use. If I go to my superiors and want (for them) out of the blue 10K to buy iText licenses they think i am insane ;-) - the project is long in production and there is no budget for it whatsoever. Don't get me wrong here - of course when a new project come's up I will adapt to the new (license) situation and evaluate if i go that route. In that case the licenses are then part of the whole budget calculation from the beginning... Just my two cents, ToM 2010/5/11 David Hoffer dhoff...@gmail.com I'm not trying to vote for a fork just pointing out that someone in this thread (or recent thread) said they DID fork; so if your thinking of doing the same you might want to share resources with one that already did the fork. -Dave On Tue, May 11, 2010 at 7:49 AM, 1T3XT info i...@1t3xt.info wrote: Michael Olenick wrote: People -- Call or write to Bruno's sales agent. Thanks! I've had a speed course in economics at http://www.vlerick.com/ last year, discovering there's more to the IT business than writing code. It's all about the business model, not just the business model used for iText, but also the business model of the end user/developer. You've explained that very well. We are using a license (be it the AGPL,
Re: [iText-questions] Updating internal links in a contatenated pdf
Hi, I've purchased the book this morning in MEAP version. What sample of the book solve my problem? I have tested ConcatenateBookmarks and ConcatenateNamedDest samples and don't work In first sample in the call tmp = SimpleBookmark.getBookmark(reader); tmp is always null I suppose document hasn't bookmarks so it has internal links. In the second sample the call SimpleNamedDestination.getNamedDestination(readers[1], false) Returns an empty hashmap The source documents are created in MS Word 2007 and saved as PDF. The links are created in word as an hiperlynk to a marcador (bookmark, I suppose, in English version). I could attach the files if you want but I don't know if attachments are welcome in the maillist) Regards, Miguel A. Maicas -Mensaje original- De: itext-questions-requ...@lists.sourceforge.net [mailto:itext-questions-requ...@lists.sourceforge.net] Enviado el: lunes, 10 de mayo de 2010 23:03 Para: itext-questions@lists.sourceforge.net Asunto: iText-questions Digest, Vol 48, Issue 24 Send iText-questions mailing list submissions to itext-questions@lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/itext-questions or, via email, send a message with subject or body 'help' to itext-questions-requ...@lists.sourceforge.net You can reach the person managing the list at itext-questions-ow...@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than Re: Contents of iText-questions digest... -- Message: 1 Date: Mon, 10 May 2010 19:12:58 +0200 From: 1T3XT info i...@1t3xt.info Subject: Re: [iText-questions] Updating internal links in a contatenated pdf To: Post all your questions about iText here itext-questions@lists.sourceforge.net Message-ID: 4be83e9a.7040...@1t3xt.info Content-Type: text/plain; charset=ISO-8859-1; format=flowed Maicas Juanes, Miguel ?ngel wrote: Hi, I have 2 pdf documents (doc1.pdf ; doc2.pdf) that I must concatenate in another pdf (result.pdf) OK doc1.pdf and doc2.pdf have internal links OK I'm using a variant of the code of ConcatenateStamp sample: http://itextpdf.com/examples/index.php?page=exampleid=128 That's an example from the second edition of the book iText in Action. It is assumed that you have purchased the book if you use this example. The result document (result.pdf) is created but internal links of the second document (doc2.pdf) have the original page destination (if the first link in doc2.pdf point to the 3th page of doc2.pdf the same link in result.pdf point to the 3th page of result.pdf). The answer can be found in part 2 of the book, please read on, and you'll find it. I've tried to change the destination using this code: The answer to your question is mentioned literally in the book. The chapter you need is already available: http://itextpdf.com/book/ (Note that you shouldn't buy the book through Amazon if you need an immediate answer.) -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] Font problem when viewing pdf with PdfTemplate's
Fons wrote: Well, I've got exactly the same result. So it could be a matter of taste... OK, so the way the PDF is rendered in the screen shot is a problem. Let me have another look. But the problem is that the text 'template font' is different (mainly thicker and less 'tidy') compared to the 'template font' text in the 'without_template.pdf'... Aha, now I see it. It's as if the rendering mode is different. Maybe you've changed something in the graphics state. I've had a quick look at the templates (one is in an OCG, the other isn't), and I see plenty of stuff like Overprint Mode (OPM) and a different smoothness tolerance! I haven't checked every change in the graphics state, but why are you using such a convoluted templates? -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] What action is requred in terms of License
I suspect you're thinking of me. I maintain a fork that was originally from paulo 144, and was (mostly) ported to 2.0.4 relatively recently. It's really not for Public Consumption. Lots of Cardiff-specific cruft in there, along with a couple patches/features that were rejected from the trunk because they caused problems when you use iText in a way other than the way I do. Yes, we run the unit tests, but those tests (clearly) aren't all that comprehensive. That's what the users are for! :/ Autonomy (of which Cardiff is a part) has a we don't pay for 3rd party licenses thing going on. With that policy in place, we can never use the post-AGPL version. Or can we? Should it come to it, I suspect we might be able to trade some developer hours (mine) for a license, but it has not come to that, so we haven't explored it with iTextSoftware (yet). --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: David Hoffer [mailto:dhoff...@gmail.com] Sent: Tuesday, May 11, 2010 7:09 AM To: Post all your questions about iText here Subject: Re: [iText-questions] What action is requred in terms of License I'm not trying to vote for a fork just pointing out that someone in this thread (or recent thread) said they DID fork; so if your thinking of doing the same you might want to share resources with one that already did the fork. -Dave On Tue, May 11, 2010 at 7:49 AM, 1T3XT info i...@1t3xt.info wrote: Michael Olenick wrote: People -- Call or write to Bruno's sales agent. Thanks! I've had a speed course in economics at http://www.vlerick.com/ last year, discovering there's more to the IT business than writing code. It's all about the business model, not just the business model used for iText, but also the business model of the end user/developer. You've explained that very well. We are using a license (be it the AGPL, or a commercial license) because that's better for everyone. If you choose the AGPL, you share your code. If you choose the commercial license, you share some of your revenue. The situation before the AGPL was not healthy. At some point, I had the impression I was being suffocated: plenty of people were mailing me personally, DEMANDING a solution for their problem. I didn't have any time to think about new code anymore, and that's not good: a good product has to offer continuity! Recently, I attended an event where I had a talk with a CEO of a company who had been using iText for years. He said that he was now looking for another free product because he could no longer use iText. I asked him how much switching to another library would cost in terms of development, and what he would do if that other free library decided to change its license too (because it's easy to run a F/OSS product if you're not successful, but it's a lot of hard work as soon as people actually start using it). He hadn't thought about that yet, but I saw that he realized that would probably cost him far more than to have another chat with sales. So it goes... -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.814 / Virus Database: 271.1.1/2842 - Release Date: 05/10/10 23:26:00 -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] Font problem when viewing pdf with PdfTemplate's
The templates are created with Acrobat Distiller from a MS-Word document. So perhaps I should take a closer look at the Distiller configuration settings, for now I've just used the default ones... -- View this message in context: http://itext-general.2136553.n4.nabble.com/Font-problem-when-viewing-pdf-with-PdfTemplate-s-tp2173792p2174063.html Sent from the iText - General mailing list archive at Nabble.com. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] Spam: Re: Merging two templates in iText
You might consider looking at the N-up Tool in the iText Toolbox, for an example simolar to what you want. Does the same idea (expressed in your sample code above) still apply? In other words: Yes. Just keep in mind that 0,0 is the lower left corner (baring page rotation, but since you're the one generating the pages in the first place, you can safely ignore that unless you're a masochist). --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] Remove pdf attachments
At a guess, I'd say you're dealing with embedded videos and such rather than File Attachments (as defined by PDF). Could we see your PDF? --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: r00fus [mailto:raj.sesha...@gmail.com] Sent: Monday, May 10, 2010 2:03 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Remove pdf attachments Hi, I'm new to this list but have a question which I don't think has been resolved here in my searches through the archives. I'm trying to remove attachments from a number of my pdf files (I can extract via pdftk, so preserving them is not an issue). I found the following example code on the mailing list from a http://old.nabble.com/Remove-Attachments-from-pdf-file-td22804697.html previous thread : public void removeAttachments(PdfReader reader) { PdfDictionary catalog = reader.getCatalog(); PdfDictionary names = (PdfDictionary)PdfReader.getPdfObject(catalog.get(PdfName.NAMES)); if( names != null) { PdfDictionary files = (PdfDictionary) PdfReader.getPdfObject(names.get(PdfName.EMBEDDEDFILES)); if( files!= null ){ for( Object key : files.getKeys() ){ files.remove((PdfName)key); } reader.removeUnusedObjects(); } } } However, the code does not work.In my introspection of the code, I only found that the variable names is null. On further examination, even catalog.get(PdfName.NAMES) shows null on a System.out.println(). Before I spend days diving deep into the itext library and PDF spec, I was wondering if someone could help me in figuring out what I can do to get this working. Thanks in advance! -- View this message in context: http://itext-general.2136553.n4.nabble.com/Remove-pdf-attachme nts-tp2172927p2172927.html Sent from the iText - General mailing list archive at Nabble.com. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.814 / Virus Database: 271.1.1/2842 - Release Date: 05/10/10 23:26:00 -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] Problems with ConcatCTM
I suspect your PDF's media/crop/etc boxes aren't set to 0,0,wid,heigh, but Something Else. You need to take the page's actual lower left corner into account when you set the CTM. Your current code ass-u-mes 0,0, and it looks like its wrong in this case. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; From: Dean Krueger [mailto:dmkrue...@gmail.com] Sent: Monday, May 10, 2010 11:15 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Problems with ConcatCTM Hi, I have a PDF that I am changing the art,trim,crop and media boxes, using PdfContentByte.ConcatCTM and writing to a PdfStamper object. This has always worked, until I came across this one PDF file. It seems that when I set the offset of the page all but one logo is moving. You can see the offset in the screen shot supplied. This is a single page PDF, can anyone think of what could possibly causing this. I have never seen this happen to any pdf before, normally when its offset the entire pdf moves as expected. I can furnish the PDF if anyone would like to see it, its 19meg. This is the main guts to the code: byte[] b = Reader.GetPageContent(page); PdfContentByte cb = new PdfContentByte(null); cb.ConcatCTM(1, 0, 0, 1, -5f, -5f); Thank you for any idea's! Dean No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.814 / Virus Database: 271.1.1/2842 - Release Date: 05/10/10 23:26:00 -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] fields problem
I'm going to guess your extra size is coming from one or more embedded fonts. When you use a font in a field, the entire font must be embedded, because there's no way to know what the user will type. If you stick to the Base 14 fonts (times, helvetica, courier, plus their bold/italic variants), I suspect you'll end up with a smaller PDF. Failing that, run a size audit on your PDF in Acrobat Pro. If you don't have it, attach the PDF and we'll see what we can see. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; From: Evald Ibrahimi [mailto:ev...@sitisrl.info] Sent: Friday, May 07, 2010 3:05 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] fields problem Hello Everybody, i have created a pdf file and its size it is about 15Kbyte which is ok. After that, i have inserted some fields and its size grows to 480Kbyte. I have calculated that for every field adedd, the size of the pdf file grows at a rate of 10~13 Kbyte. I use itext to compile this fields. Can i remove this fields or trasform that to simple text once the field is compiled? Thank you. Evald Ibrahimi No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.814 / Virus Database: 271.1.1/2842 - Release Date: 05/10/10 23:26:00 -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] Updating internal links in a contatenated pdf
Maicas Juanes, Miguel Ángel wrote: In the second sample the call SimpleNamedDestination.getNamedDestination(readers[1], false) Returns an empty hashmap and what if you change false into true? Maybe the named destinations are stored as names instead of as strings. The links are created in word as an hiperlynk to a marcador (bookmark, I suppose, in English version). The concept bookmark in Word is different from the concept bookmark in PDF. In Word a bookmark is not an external structure with explicit destinations, but a series of positions in the document. I could attach the files if you want but I don't know if attachments are welcome in the maillist) Attachments are OK, but I'll be going off line in a moment, so I hope somebody else will be able to take a look at it if you need a quick answer. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] Problems with ConcatCTM
Everything on the PDF but those 4 inner graphics are moving correctly. I could make the PDF available, if you want to see for yourself? Thanks for the reply Dean On Tue, May 11, 2010 at 12:16 PM, Mark Storer msto...@autonomy.com wrote: I suspect your PDF's media/crop/etc boxes aren't set to 0,0,wid,heigh, but Something Else. You need to take the page's actual lower left corner into account when you set the CTM. Your current code ass-u-mes 0,0, and it looks like its wrong in this case. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -- *From:* Dean Krueger [mailto:dmkrue...@gmail.com] *Sent:* Monday, May 10, 2010 11:15 AM *To:* itext-questions@lists.sourceforge.net *Subject:* [iText-questions] Problems with ConcatCTM Hi, I have a PDF that I am changing the art,trim,crop and media boxes, using PdfContentByte.ConcatCTM and writing to a PdfStamper object. This has always worked, until I came across this one PDF file. It seems that when I set the offset of the page all but one logo is moving. You can see the offset in the screen shot supplied. This is a single page PDF, can anyone think of what could possibly causing this. I have never seen this happen to any pdf before, normally when its offset the entire pdf moves as expected. I can furnish the PDF if anyone would like to see it, its 19meg. This is the main guts to the code: byte[] b = Reader.GetPageContent(page); PdfContentByte cb = new PdfContentByte(null); cb.ConcatCTM(1, 0, 0, 1, -5f, -5f); Thank you for any idea's! Dean No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.814 / Virus Database: 271.1.1/2842 - Release Date: 05/10/10 23:26:00 -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] Remove pdf attachments
Mark, I've attached the pdf here: http://n4.nabble.com/file/n2174232/Test.pdf Test.pdf It's not embedded videos... and most of the attachments themselves are pdfs (this example includes a doc file as well). Mark Storer-2 wrote: At a guess, I'd say you're dealing with embedded videos and such rather than File Attachments (as defined by PDF). Could we see your PDF? --Mark Storer Senior Software Engineer Cardiff.com -- View this message in context: http://itext-general.2136553.n4.nabble.com/Remove-pdf-attachments-tp2172927p2174232.html Sent from the iText - General mailing list archive at Nabble.com. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] What action is requred in terms of License
Autonomy just announced Q1 results with $194.2 million in revenue, apparently a record. Developers: push your product managers to pay reasonable licensing fees. It's not easy and they'll bicker but giving a sharp nudge to them, and making them at least try, can make a real difference. Michael. On Tue, May 11, 2010 at 12:08 PM, Mark Storer msto...@autonomy.com wrote: I suspect you're thinking of me. I maintain a fork that was originally from paulo 144, and was (mostly) ported to 2.0.4 relatively recently. It's really not for Public Consumption. Lots of Cardiff-specific cruft in there, along with a couple patches/features that were rejected from the trunk because they caused problems when you use iText in a way other than the way I do. Yes, we run the unit tests, but those tests (clearly) aren't all that comprehensive. That's what the users are for! :/ Autonomy (of which Cardiff is a part) has a we don't pay for 3rd party licenses thing going on. With that policy in place, we can never use the post-AGPL version. Or can we? Should it come to it, I suspect we might be able to trade some developer hours (mine) for a license, but it has not come to that, so we haven't explored it with iTextSoftware (yet). --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: David Hoffer [mailto:dhoff...@gmail.com] Sent: Tuesday, May 11, 2010 7:09 AM To: Post all your questions about iText here Subject: Re: [iText-questions] What action is requred in terms of License I'm not trying to vote for a fork just pointing out that someone in this thread (or recent thread) said they DID fork; so if your thinking of doing the same you might want to share resources with one that already did the fork. -Dave On Tue, May 11, 2010 at 7:49 AM, 1T3XT info i...@1t3xt.info wrote: Michael Olenick wrote: People -- Call or write to Bruno's sales agent. Thanks! I've had a speed course in economics at http://www.vlerick.com/ last year, discovering there's more to the IT business than writing code. It's all about the business model, not just the business model used for iText, but also the business model of the end user/developer. You've explained that very well. We are using a license (be it the AGPL, or a commercial license) because that's better for everyone. If you choose the AGPL, you share your code. If you choose the commercial license, you share some of your revenue. The situation before the AGPL was not healthy. At some point, I had the impression I was being suffocated: plenty of people were mailing me personally, DEMANDING a solution for their problem. I didn't have any time to think about new code anymore, and that's not good: a good product has to offer continuity! Recently, I attended an event where I had a talk with a CEO of a company who had been using iText for years. He said that he was now looking for another free product because he could no longer use iText. I asked him how much switching to another library would cost in terms of development, and what he would do if that other free library decided to change its license too (because it's easy to run a F/OSS product if you're not successful, but it's a lot of hard work as soon as people actually start using it). He hadn't thought about that yet, but I saw that he realized that would probably cost him far more than to have another chat with sales. So it goes... -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.814 / Virus Database: 271.1.1/2842 - Release Date: 05/10/10 23:26:00 -- ___ iText-questions mailing list
Re: [iText-questions] how to detect remote links in a PDF ?
Yes, I believe that there should be a gentleman there named Colin that can help you... Leonard -Original Message- From: Bruno Lowagie [mailto:br...@lowagie.com] Sent: Tuesday, May 11, 2010 8:06 AM To: Post all your questions about iText here Subject: Re: [iText-questions] how to detect remote links in a PDF ? Leonard Rosenthol wrote: PDF is a fully open standard. ANYONE can contribute. We WELCOME participation. I'm interested! I'm going to the Adobe Pulse next week: http://events.adobe.co.uk/cgi-bin/register.cgi?country=ukeventid=9660venueid=9813 Is there somebody I can talk to about this? best regards, Bruno -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
[iText-questions] Text extraction
Hi, I need to extract all text from a pdf file. Is there any code to achieve that? I have bought the 2nd edition of itext in action, but seems some of the relevant chapters for this are not yet available, but I do need to do this as soon as possible. Any hints or suggestions (I will be using iTextSharp)? Thank you Rui Ribeiro -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
[iText-questions] Bolded text is fuzzy in PDFs
Hi iText, Ive noticed that the bolded text in my generated PDF's looks particularly blurry. If I zoom into the character it looks very precise, but zoomed out at 100% it looks very choppy and uneven. Ive read that this may be caused by the use of bitmap fonts instead of truetype ? Has anyone else had this problem before? Are there any workarounds ? Thanks, Adam Mork -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] Bolded text is fuzzy in PDFs
There are various reasons this might be the case, but w/o seeing an actual PDF - we can only speculate. From: Adam Mork [mailto:ad...@windward.net] Sent: Tuesday, May 11, 2010 5:00 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Bolded text is fuzzy in PDFs Hi iText, Ive noticed that the bolded text in my generated PDF's looks particularly blurry. If I zoom into the character it looks very precise, but zoomed out at 100% it looks very choppy and uneven. Ive read that this may be caused by the use of bitmap fonts instead of truetype ? Has anyone else had this problem before? Are there any workarounds ? Thanks, Adam Mork -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
Re: [iText-questions] .NET/iTextSharp Apply Digital Signature
Ok so we have the CAPICOM ActiveX object executing the SignData method, but now I need to see how I can incorporate that with iTextSharp. Since I have to sign the PDF with the user's private key and this is over the web, I can't use the methods described in the iTextSharp examplesor can I? What is actually required for a PDF digital signature field? -- View this message in context: http://itext-general.2136553.n4.nabble.com/NET-iTextSharp-Apply-Digital-Signature-tp2172831p2195461.html Sent from the iText - General mailing list archive at Nabble.com. -- ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/