[iText-questions] PdfGraphics2D fonts are twice the size of Java2D fonts

2008-01-10 Thread Andrew Mickish
our advice. --Andrew Mickish P.S. I just ordered the book. ;-) - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164

Re: [iText-questions] PdfGraphics2D fonts are twice the size of Java2D fonts

2008-01-10 Thread Andrew Mickish
Indeed, you are correct. I had copied the PDF generating part of the code from an example, and had not changed the width and height of the output. Thanks! Paulo Soares wrote: > It's not the text that is too big, it's the graph that is too small. The > font alignments are done using the Graphic

[iText-questions] How to control hyperlinks in JFreeChart PDF file?

2008-01-20 Thread Andrew Mickish
existing hyperlinks, and adding hyperlinks to text that is not a literal URL? Thanks! --Andrew Mickish - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com

[iText-questions] Annotating irregular shapes

2008-01-25 Thread Andrew Mickish
Is there a way to create hotspots in my PDF documents over irregular shapes like pie chart sections? JFreeChart puts tooltips and hyperlinks over pie chart slices using Java mouse events and HTML imagemaps. The areas can be described as arcs (boundingbox, angle1, angle2) or as imagemap area ta

[iText-questions] Annotation coordinate system

2008-01-29 Thread Andrew Mickish
). But inverting is not sufficient to overlay the PdfAnnotation circles with the PdfGraphics2D polygons. There also seems to be a translation offset. What is the best way to align these coordinate systems? Thanks! --Andrew Mickish

Re: [iText-questions] Annotation coordinate system

2008-01-29 Thread Andrew Mickish
com.lowagie.text.Rectangle( llx, lly, urx, ury ); Andrew Mickish wrote: > My PdfAnnotations do not line up with the graphics drawn by > PdfGraphics2D. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R)

[iText-questions] Squelch annotation thought bubble

2008-01-30 Thread Andrew Mickish
How do I turn off the yellow thought bubble that appears next to my PdfAnnotation.createSquareCircle()? I expect the circle itself to be the target of the mouse hovering. Thanks! - This SF.net email is sponsored by: Micros

[iText-questions] Custom hyperlink hover text?

2010-11-23 Thread Andrew Mickish
I add hyperlinks to my PDF document using the PdfGraphics2D interface, which creates a new PdfAction(url) and calls PdfContentByte.setAction(). This automatically converts my anchor "text" tags from my Java HTMLEditorKit to PDF hyperlinks that work great. But when I hover over

Re: [iText-questions] Custom hyperlink hover text?

2010-11-24 Thread Andrew Mickish
Thanks for the responses. The setting Edit > Preferences > General > uncheck "Create links from URLs" only affects "incidental" links, not links specifically created in the document. Turning that off stops Reader from creating links out of flat text that wasn't an explicit link to begin with, bu

Re: [iText-questions] Custom hyperlink hover text?

2010-11-24 Thread Andrew Mickish
OK, I have unpacked iText, so I can customize PdfGraphics2D.drawString(), which is where the rendering hint passed from Java2D tells iText that it should do something special with the text. It essentially calls cb.setAction(new PdfAction(url)). Can I create a button instead of an action here?

Re: [iText-questions] Custom hyperlink hover text?

2010-11-25 Thread Andrew Mickish
At first, I did not realize that the writer was available through the cb member. Now I have the solution I was looking for using a PdfAnnotation. Thanks for the help! // This is the straightforward, original way that iText // adds hyperlinks to text. The problem is that Acrobat Reader

[iText-questions] Track PDF views?

2012-05-14 Thread Andrew Mickish
I would like to know when anyone views my PDF. This includes when someone downloads the PDF, sends it as an attachment in an email, and a third person opens the PDF in Adobe Reader. Is there some way to connect back to a server and increment a counter? Recent versions of Adobe Reader disable Jav

Re: [iText-questions] Track PDF views?

2012-05-15 Thread Andrew Mickish
> Why would you want to do that? I mean, what's your business case? Perhaps > PDF is not the right technology for you and you need some kind of DRM > thing. I am using a DRM thing that is a PITA. It prevents users from sharing the content. The business case is to encourage users to share the con

[iText-questions] Detecting special pages that were "tagged" in InDesign

2013-01-09 Thread Andrew Mickish
My publishing department uses Adobe tools like InDesign to create multi-page PDF files. Some, but not all of the documents have a full-page disclaimer as the last page. When I use iText to concatenate the files together into a bundle of documents, the disclaimer appears multiple times in the midd