Re: [iText-questions] Content stream question

2011-10-28 Thread Mark Storer
I suggest you run the PDF Syntax Check on the file, just to be sure. Stuff that Acrobat glosses over when displaying a form still get flagged by the check. I'm pretty sure it's only available in the pro versions. --Mark Storer Senior Software Engineer Cardiff.com import

Re: [iText-questions] Content stream question

2011-10-27 Thread Mark Storer
Can we see the actual PDF? --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; Autonomy Corp., an HP Company -Original Message- From: Kevin Day [mailto:ke...@trumpetinc.com] Sent: Thursday, October 27, 2011 3:57

Re: [iText-questions] How do you stop iText from automatically adding cm operators to content streams?

2011-10-26 Thread Mark Storer
I suggest you step through the source, find out where the problem lies, and change it. Open Source is great like that. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; Autonomy Corp., an HP Company -Original Message

Re: [iText-questions] Seemingly conflicting results when getting Pagesdictionary

2011-10-25 Thread Mark Storer
Use The Source, Luke: http://itext.svn.sourceforge.net/viewvc/itext/trunk/itext/src/main/java/ com/itextpdf/text/ In particular: http://itext.svn.sourceforge.net/viewvc/itext/trunk/itext/src/main/java/ com/itextpdf/text/pdf/PdfDictionary.java?revision=4806view=markup --Mark Storer Senior

Re: [iText-questions] PDF Trimbox

2011-10-14 Thread Mark Storer
Look at the parameter type that PdfDictionary.put takes for the second parameter. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; Autonomy Corp., an HP Company From: Tom

Re: [iText-questions] iText - Dynamic Table + Footer

2011-10-14 Thread Mark Storer
Use a bottom margin to protect your page numbers. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; Autonomy Corp., an HP Company From: Lucas Francisco [mailto:dominic

Re: [iText-questions] PDFReader and secured PDF

2011-10-14 Thread Mark Storer
Only the open password is backed with Strong Crypto. The rest is legalese and by-your-leave. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; Autonomy Corp., an HP Company -Original Message- From: spr...@gmx.eu

Re: [iText-questions] shrink text to fit rectangle

2011-10-12 Thread Mark Storer
213 for multiline text, or on 247 for single-line text. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; Autonomy Corp., an HP Company From: Costa Basil [mailto:costa_ba

Re: [iText-questions] shrink text to fit rectangle

2011-10-12 Thread Mark Storer
There sure is. If you set up a ColumnText, then call .go(true), it'll run in simulated mode, and won't actually draw anything. You can then call getYLine() to see where the text ended. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff

Re: [iText-questions] Generating multi-page file from single-pagetemplate

2011-10-11 Thread Mark Storer
. Not terribly efficient, but it works. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; Autonomy Corp., an HP Company From: Chris Harry [mailto:cha...@gmail.com] Sent

Re: [iText-questions] What are those unused objects in a PDFdocument

2011-10-11 Thread Mark Storer
Not neccessarily! You could create a new class that inherits from PdfReader and overrides RemoveUnusedObjects() (unless it's private... but I think it's public). Yep, sure is. So your version of RemoveUnusedObjects can do all that stuff I suggested the first time around. --Mark Storer

Re: [iText-questions] What are those unused objects in a PDFdocument

2011-10-07 Thread Mark Storer
might be interesting, but the binary gobbledegook of images and fonts probably won't tell you much. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; Autonomy Corp., an HP Company From

Re: [iText-questions] Add rotation to a page

2011-10-07 Thread Mark Storer
currRot = pageRot.intValue(); currRot += 90; currRot %= 360; newRot = new PdfNumber(currRot); } pageDict.put(PdfName.ROTATE, newRot); I believe you can do this any time before you call pdfCopy.add(), but I'm not entirely sure. Safest to do it before creating the PdfImportedPage. --Mark Storer

Re: [iText-questions] What are those unused objects in a PDF document

2011-10-06 Thread Mark Storer
You could hack the source to dump a string representation of those objects to System.out prior to removing them. Shouldn't be too hard. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; Autonomy Corp., an HP Company

Re: [iText-questions] advance vertical position manually?

2011-10-06 Thread Mark Storer
Not /explicitly/, no. But you can slap any old invisible object on the page as a placeholder. Empty paragraphs with odd padding. Rectangles with no borders. A 1-pixel 0% alpha image stretched to the size you need. There are probably other things you could try too. --Mark Storer Senior

Re: [iText-questions] Add Named Destinations to Existing PDF

2011-10-06 Thread Mark Storer
You may have to read the PDF Spec (see sig block), and use iText's PdfDictionary/PdfArray/PdfString/etc classes directly. --Mark Storer mailto:marksto...@itextsoftware.com PDF Guru Modestest Man In The World Autonomy Cardiff http://www.cardiff.com/ iText Software http

Re: [iText-questions] acroform text field does not get hiden injavascript

2011-10-05 Thread Mark Storer
on your part. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; Autonomy Corp., an HP Company From: Sailesh K [mailto:skrish...@yahoo.com] Sent: Tuesday, October 04, 2011 8

Re: [iText-questions] acroform text field does not get hiden injavascript

2011-10-05 Thread Mark Storer
when dealing with OOo forms. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; Autonomy Corp., an HP Company From: Sailesh K [mailto:skrish...@yahoo.com] Sent: Tuesday

Re: [iText-questions] [Book]

2011-09-22 Thread Mark Storer
I suggest going with #1. Build all your static content in advance, and only render/insert the pages with dynamic content as needed. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null

Re: [iText-questions] [Book]

2011-09-22 Thread Mark Storer
I'd just build the entire page each time. There might be some boilerplate there, but I think the reduced technical complexity will be worth it. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null

Re: [iText-questions] FW: Split secure pdf

2011-09-20 Thread Mark Storer
Only if you have the owner password, or know how to hack that limitation out of iText's source. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: mingqiang yu [mailto:mingqi...@gmail.com

Re: [iText-questions] Form Flattening

2011-09-16 Thread Mark Storer
is/isn't there. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -- BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA http://p.sf.net/sfu/rim

Re: [iText-questions] 2D dynamic barcodes

2011-09-15 Thread Mark Storer
No, iText cannot do that. Yes, LiveCycle Designer + Acrobat can do that. Build the whole form in LCD, then reader-enable it with Acrobat. Easy peasy. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original

Re: [iText-questions] limited fonts

2011-09-12 Thread Mark Storer
It is not possible, no. You have to parse your text and use the appropriate font for a given span of characters. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; From: Vahid

Re: [iText-questions] limited fonts

2011-09-12 Thread Mark Storer
(textWithFonts); --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; From: Paulo Soares [mailto:psoa...@glintt.com] Sent: Monday, September 12, 2011 4:00 PM To: Post

Re: [iText-questions] Unexpected behavior while using Graphics2D

2011-09-01 Thread Mark Storer
of the child state changes would make it out of the wrapping 'q/Q'. Further, a child's child's child might need wrappers from all it's parents, not just the immediate parent. This isn't rocket science, but it's certainly not simple either. --Mark Storer Senior Software Engineer Cardiff.com

Re: [iText-questions] IText - PDF/A-1A compliance

2011-09-01 Thread Mark Storer
You'll probably also need to buy the PDF/A ISO specification. The structure requirements are quite specific. You might start by finding a PDF/A-1a file and dissecting it in something like RUPS (free) or the PDF Can Opener Acrobat plugin (commercial). --Mark Storer Senior Software Engineer

Re: [iText-questions] How to update A PushbuttonField on an existing PDF

2011-08-24 Thread Mark Storer
://localhost:8084/PDFFo rms/CapturePdf?category= + category, null, PdfAction.SUBMIT_PDF)); form.replacePushbuttonField(ScalepointButton, submit); stamper.close(); // We write the PDF bytes to the OutputStream OutputStream os = response.getOutputStream(); baos.writeTo(os); os.flush(); --Mark

Re: [iText-questions] PDF/A-1a missing structure issue..

2011-08-16 Thread Mark Storer
to do 1a correctly. 1b isn't all that hard. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: myworld.amol [mailto:myworld.a...@gmail.com] Sent: Tuesday, August 16, 2011 1:53 AM To: itext

Re: [iText-questions] Urgent: AcroFields.setFieldRichValue() doesn't write out rich text

2011-08-15 Thread Mark Storer
efficient, but it'll work. PS: I think you'll need to draw the field's borders as well, but that code is fairly simple, and can be found in BaseField.java. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null

Re: [iText-questions] Unable to extract Tiff Image

2011-08-09 Thread Mark Storer
clever/sarcasm ways folks can write broken PDF. So rather than make the effort, we take care of them as they come up. And we try to hunt down producers of bad PDFs and have them flogged. At least until their morale improves. --Mark Storer Senior Software Engineer Cardiff.com import

Re: [iText-questions] Inaccuracy scaling imported pages

2011-07-27 Thread Mark Storer
And it's possible that the precision issue is with your PDF viewer, not the data given to that viewer. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; From: Paulo Soares

Re: [iText-questions] Retrive flatten field with Itext

2011-07-07 Thread Mark Storer
without looking at the page contents. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; From: sudhakar nallamaru [mailto:sudhakarbabu...@gmail.com] Sent: Thursday, July 07, 2011

Re: [iText-questions] Some objects(type /pages ) are missing in pdffiles...??

2011-07-07 Thread Mark Storer
Can we see your before and after PDFs? --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: sam_dev [mailto:gorgeious@gmail.com] Sent: Thursday, July 07, 2011 12:02 AM To: itext

Re: [iText-questions] Retrieving Document Properties

2011-07-07 Thread Mark Storer
. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; From: William Bell [mailto:wrb...@btinternet.com] Sent: Thursday, July 07, 2011 7:35 AM To: itext-questions

Re: [iText-questions] API documentation for 2.1.7

2011-07-06 Thread Mark Storer
You don't. You'd have to generate it yourself from source. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; From: Steinberg, Dan [mailto:daniel.steinb...@cengage.com

Re: [iText-questions] What to set while stamping the PDF for retaining tags described in PDF template

2011-06-30 Thread Mark Storer
a content stream properly. You could wrap an entire template in a single tag easily enough. Adding tags inside that template is practically beyond your reach. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original

Re: [iText-questions] Why iText can not flatten new fields

2011-06-30 Thread Mark Storer
( formFieldDict ); item.addWidgetRef( fieldRef ); item.addValue( formFieldDict ); item.addMerged( formFieldDict ); item.addTabOrder( fldDictsIndexInAnnotsArray ); acroFields.getFields().put(fldName, item); --Mark Storer Senior Software Engineer Cardiff.com import

Re: [iText-questions] What to set while stamping the PDF for retaining tags described in PDF template

2011-06-29 Thread Mark Storer
14, sections 6 Marked Content, 7 Logical Structure, and 8 Tagged PDF. I suspect you'll also want to check out section 9 Accessibility Support. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From

Re: [iText-questions] What to set while stamping the PDF for retaining tags described in PDF template

2011-06-29 Thread Mark Storer
14, sections 6 Marked Content, 7 Logical Structure, and 8 Tagged PDF. I suspect you'll also want to check out section 9 Accessibility Support. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From

Re: [iText-questions] formatting

2011-06-28 Thread Mark Storer
keystroke script... that may be required for the format script to function properly. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; From: Yevgeniy Cherniak [mailto:yevgeniy.chern

Re: [iText-questions] formatting

2011-06-27 Thread Mark Storer
them for you. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; From: Yevgeniy Cherniak [mailto:yevgeniy.chern...@autofont.com] Sent: Monday, June 27, 2011 3:57 AM

Re: [iText-questions] Shifting content of a page

2011-06-27 Thread Mark Storer
lose any annotations from the original page. Option 2: With a PdfStamper, set the UnderContent to do a transformation to accomplish the same thing. You should change the Rect of any annotations on the page to match. This would probably require two passes over the offending PDFs. --Mark

Re: [iText-questions] How to extract title / heading from document contents

2011-06-24 Thread Mark Storer
heuristic could determine this title to be Carry a Big Stick. And it would be wrong. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; From: Balder [mailto:bal...@redlab.be

Re: [iText-questions] Error processing PDF Zip file

2011-06-23 Thread Mark Storer
). Test_file.pdf's cross reference table is just fine. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; From: thiyagu rajan [mailto:thiyagu@gmail.com] Sent: Thursday, June 23, 2011 12

Re: [iText-questions] Error processing PDF Zip file

2011-06-23 Thread Mark Storer
Sadly, our email server strips .zip files and Other Harmful Attachments. I feel so safe now. :/ --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; From: thiyagu rajan

Re: [iText-questions] Collapse bookmarks by default

2011-06-16 Thread Mark Storer
Well there you have it. I was skimming the spec, saw count and ass-u-me'd it worked like the Pages dictionary's count. Nope. And here's a link to the relevant JavaDoc: http://api.itextpdf.com/itext/com/itextpdf/text/pdf/PdfOutline.html#setOpen(boolean) --Mark Storer Senior Software

Re: [iText-questions] Collapse bookmarks by default

2011-06-15 Thread Mark Storer
I believe each bookmark has an open/close setting... and I'm wrong. It doesn't look like there's any way to control that what so ever. Humph. I'd have put money on that too. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null

Re: [iText-questions] Default open bookmark

2011-06-14 Thread Mark Storer
( destinationAction ); dest may well be exactly the same object you used to define the bookmark. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: srikanth bapanapalli [mailto:srikant

Re: [iText-questions] Default open bookmark

2011-06-14 Thread Mark Storer
What version of iText are you using? The version I listed has been around for Quite Some Time, well before 5.0. If your version is as old as I think it is, you'll need to use PdfWriter.PageModeUseOutlines. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer

Re: [iText-questions] Parallelizing parts of iText.

2011-06-08 Thread Mark Storer
progress? I'm looking forward to see what you come up with. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; From: Lorand Szakacs [mailto:lorand.szak...@gmail.com] Sent

Re: [iText-questions] Getting error when I tried to open the pdf in chrome browser.

2011-05-26 Thread Mark Storer
- They're taking away PDF support, for instance in the new Google Analytics: http://www.google.com/support/forum/p/Google+Analytics/thread?tid=148e6e 83786fdf75 Based on the comments on that page, it looks like they got A Lot of negative user feedback and are now

Re: [iText-questions] Appearance of PdfImportedPage object inconsistent

2011-05-25 Thread Mark Storer
the proper use of saveState/restoreState comes in. Going by your sample code, you've mostly got the idea already. You just need to restoreState all the way back to the default state before doing your clipping and drawing your imported page. --Mark Storer Senior Software Engineer Cardiff.com

Re: [iText-questions] Appearance of PdfImportedPage objectinconsistent

2011-05-25 Thread Mark Storer
state back, then you need to save the state at the --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; From: Bill Groom [mailto:bgr...@razcall.com] Sent: Wednesday, May 25

Re: [iText-questions] Place text in speacified x y coordinate

2011-05-23 Thread Mark Storer
, it still needs the correct coordinates. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: karthik B [mailto:karthik87_...@yahoo.co.in] Sent: Monday, May 23, 2011 5:19 AM To: Post all your

Re: [iText-questions] Optional context retrieval

2011-05-19 Thread Mark Storer
, so that's probably not it. I think we're simply not extracting the encoding differences properly. This could be a bug in iText, though I haven't dug any deeper. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null

Re: [iText-questions] open POPUP window on pdf load

2011-05-19 Thread Mark Storer
message). Err... there's quite a few hoops to jump through here. Why don't you simply put the PDF behind an HTML login/registration page? Does the PDF need to stand alone? --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null

Re: [iText-questions] Problem with stamping certain PDF documents

2011-05-18 Thread Mark Storer
and/or pages with non 0,0 lower left corners. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; From: Varunkumar Nagarajan [mailto:varunkuma...@gmail.com] Sent: Wednesday, May 18

Re: [iText-questions] Optional context retrieval

2011-05-18 Thread Mark Storer
successfully extract the text content, iText won't be able to either. Can we see the PDF? --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: Michael [mailto:ad...@tradeplatform.us] Sent: Wednesday

Re: [iText-questions] Problem with stamping certain PDF documents

2011-05-18 Thread Mark Storer
); content.fill(); } --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; From: Varunkumar Nagarajan [mailto:varunkuma...@gmail.com] Sent: Wednesday, May 18, 2011 9:20 AM

Re: [iText-questions] Optional context retrieval

2011-05-18 Thread Mark Storer
Err... There's no hidden text in that PDF. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: Michael [mailto:ad...@tradeplatform.us] Sent: Wednesday, May 18, 2011 9:54 AM To: itext

Re: [iText-questions] Optional context retrieval

2011-05-18 Thread Mark Storer
. Not sure who built this file, but everything after the first byte in that line is worthless crap: ({02})Tj would have produced the same results (without confusing examine document). --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null

Re: [iText-questions] Optional context retrieval

2011-05-18 Thread Mark Storer
On the contray. I think it would. What version of iText are you using? --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: Michael [mailto:ad...@tradeplatform.us] Sent: Wednesday, May 18

Re: [iText-questions] bug on RadioCheckField.CheckType?

2011-05-12 Thread Mark Storer
Yep. Strange. In the mean time, you can: String typeChars[] = {4, l, 8, u, n, H}; myPdfFormField.setMKNormalCaption( typeChars[RadioCheckField.TYPE_* - 1] ); (which is pretty what setCheckType causes in the resulting PdfFormField, minus setting the font /again/) --Mark Storer Senior

Re: [iText-questions] import data field properties to pdf

2011-05-12 Thread Mark Storer
level. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; From: Tom D. Davidson [mailto:t...@tomdavidson.org] Sent: Thursday, May 12, 2011 10:28 AM To: Post all

Re: [iText-questions] bug on RadioCheckField.CheckType?

2011-05-11 Thread Mark Storer
Line #/file name? --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: newbie2itext [mailto:newbie2c...@hotmail.com] Sent: Wednesday, May 11, 2011 4:53 PM To: itext-questions

Re: [iText-questions] Adding input via text boxes to current PDFdocument using .NET

2011-05-06 Thread Mark Storer
their data over the internet, either in their native FDF, or via an HTML-style POST. I'd think that would be more stream-lined. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: vandiar

Re: [iText-questions] Font rotation in the VerticalText

2011-05-06 Thread Mark Storer
which font to use after your 256th unique character), and use that font instead. All the options involve searching your input string[s] prior to adding them to a VerticalText. I suggest going the replacement route. --Mark Storer Senior Software Engineer Cardiff.com import

Re: [iText-questions] itext, coldFusion, annotations and Pop-Up Notes

2011-05-05 Thread Mark Storer
May we see the PDF? --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; From: Brendan Ganning [mailto:brendan.gann...@gmail.com] Sent: Thursday, May 05, 2011 10:04 AM

Re: [iText-questions] itext, coldFusion, annotations and Pop-Up Notes

2011-05-05 Thread Mark Storer
(CosName) 1223 T = ganningb (CosString) 1224 Type = Annot (CosName) It looks like you need to get the Name or Subject and parse out the bit you want. PS: It also looks like this file was originally created with iText 1.4. --Mark Storer Senior Software Engineer Cardiff.com import

Re: [iText-questions] itext, coldFusion, annotations and Pop-Up Notes

2011-05-05 Thread Mark Storer
You probably just want the /Subject: PdfString subj = annot.getAsString(PdfName.SUBJECT); String subjStr = subj.toString(); subjStr = subjStr.substring(subjStr.indexOf('-')); You'll have to translate that to CF-speak, but I think you get the idea. --Mark Storer Senior Software Engineer

Re: [iText-questions] character spacing in vertical text

2011-05-03 Thread Mark Storer
software 'escapes' leaving a bloody trail of designers and quality assurance people in its wake. Yeah, like that. ;) --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: TAKEGATA Seiji

Re: [iText-questions] Get Hyperlink text from PDF using c#

2011-05-03 Thread Mark Storer
I suggest you use PdfTextExtractor with a LocationTextExtractionStrategy, then search the String returned by the text extractor for http://; and parse out the rest of the URL. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null

Re: [iText-questions] How to set line spacing for a multi-line formfield?

2011-05-03 Thread Mark Storer
chain together several 1-line text fields with script. Ugly hack, I know... but it would allow you to control the spacing between them, and let users change the value. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null

Re: [iText-questions] AcroFields.Item field - how to get is it hidden?

2011-05-03 Thread Mark Storer
I think he means PdfAnnotation.FLAGS_HIDDEN. PdfDictionary pdct = field.GetMerged(k); PdfNumber flags = pdct.getAsNumber(PdfName.F); if (flags PdfAnnotation.FLAGS_HIDDEN != 0) { // it's hidden } else { it's visible. } --Mark

Re: [iText-questions] AcroFields.Item field - how to get is ithidden?

2011-05-03 Thread Mark Storer
Whoops... if (flags PdfAnnotation.FLAGS_HIDDEN != 0) { Should be if (flags.intValue() PdfAnnotation.FLAGS_HIDDEN != 0) { flags is a PdfNumber... It has no implicit int conversion, so you must explicitly call one of the *Value() functions. --Mark Storer Senior Software

Re: [iText-questions] AcroFields.Item field - how to get is ithidden?

2011-05-03 Thread Mark Storer
http://www.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/PDF32000_2008. pdf Annotations and fields are defined in chapter 12 (Interactive Features), sections 5 and 7. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null

Re: [iText-questions] Portability of BaseFont.createFont (was Re:Purpose of book/{build, examples}.xml?

2011-05-02 Thread Mark Storer
with a /fonts folder and be Good To Go. We might want to consider a more general enviromental variable for this very occasion, or perhaps a specific list of fonts. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original

Re: [iText-questions] Portability of BaseFont.createFont (was Re:Purpose of book/{build, examples}.xml?

2011-05-02 Thread Mark Storer
(), then yes. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: Larry Evans [mailto:cppljev...@suddenlink.net] Sent: Monday, May 02, 2011 10:23 AM To: itext-questions@lists.sourceforge.net

Re: [iText-questions] How to activate the zoom feature for interactive PDF file? Urgent help!!

2011-05-02 Thread Mark Storer
That has nothing to do with iText, so is Off Topic. Might I suggest you ask here instead? http://superuser.com/ --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: butterfamily

Re: [iText-questions] character spacing in vertical text

2011-05-02 Thread Mark Storer
VerticalText.setLeading() --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: TAKEGATA Seiji [mailto:takeg...@veltec.co.jp] Sent: Saturday, April 30, 2011 12:24 AM To: itext-questions

Re: [iText-questions] character spacing in vertical text

2011-05-02 Thread Mark Storer
Forgive me, but aren't they the same thing in vertical text? --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: TAKEGATA Seiji [mailto:takeg...@veltec.co.jp] Sent: Monday, May 02, 2011 12

Re: [iText-questions] character spacing in vertical text

2011-05-02 Thread Mark Storer
in the first chunk and forget about it rather than setting it for every single chunk. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: TAKEGATA Seiji [mailto:takeg...@veltec.co.jp] Sent

Re: [iText-questions] How to watermark a digitally signed pdfprogramatically

2011-04-28 Thread Mark Storer
What do you mean by it doesn't work. Does it produce a PDF? Is it valid? Is the signature invalid (you cannot get around that)? --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null

Re: [iText-questions] How to watermark a digitally signedpdf programatically

2011-04-28 Thread Mark Storer
Oh, and setting the pdf version to 1.0 is probably a bad idea. That might be ignored due to using append mode, but it wouldn't hurt to get the version from your reader and preserve it. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard

Re: [iText-questions] How to watermark a digitally signed pdfprogramatically

2011-04-28 Thread Mark Storer
A single reply will suffice in the future. May we see your output from both signed and unsigned PDFs? --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; From: Kiran Nepal

Re: [iText-questions] How to retrieve AcroFields Items in order?

2011-04-27 Thread Mark Storer
: http://www.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/PDF32000_2008. pdf --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: Hawk Turner [mailto:hawktur...@gmail.com] Sent: Wednesday

Re: [iText-questions] PDF/A Validation

2011-04-26 Thread Mark Storer
. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: beppecosta [mailto:beppeco...@yahoo.it] Sent: Monday, April 25, 2011 11:38 PM To: itext-questions@lists.sourceforge.net Subject: Re: [iText

Re: [iText-questions] Get Hyperlink text from PDF using c#

2011-04-26 Thread Mark Storer
Are you talking text on the page that starts with 'http://' or link annotations? --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: gayatri parthasarathy [mailto:gayatri.parthasara

Re: [iText-questions] Editing PDF using iText. Creating new APIs

2011-04-26 Thread Mark Storer
Good hunting: http://www.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/PDF32000_2008. pdf com.itextpdf.text.pdf.parser.PdfContentStreamProcessor would be a good place to start, but there's still a Large amount of work ahead of you. --Mark Storer Senior Software Engineer Cardiff.com

Re: [iText-questions] PDF/A Validation

2011-04-22 Thread Mark Storer
A link or attachment to the list would be fine. If it's Big, you can send it to my email directly. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; From: beppecosta

Re: [iText-questions] PDF/A Validation

2011-04-21 Thread Mark Storer
Don't change any of the metadata fields (author, title, etc) after you call createXmpMetadata. Do all that beforehand. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: beppecosta

Re: [iText-questions] PDF/A Validation

2011-04-21 Thread Mark Storer
Just make your doc-info changes before calling createXmpMetadata() instead of after. Should be fine. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: beppecosta [mailto:beppeco

Re: [iText-questions] PDF/A Validation

2011-04-21 Thread Mark Storer
How odd. Can we see the PDF? --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: beppecosta [mailto:beppeco...@yahoo.it] Sent: Thursday, April 21, 2011 9:06 AM To: itext-questions

Re: [iText-questions] PDF merge with XfaForms

2011-04-20 Thread Mark Storer
is a happy accident, and there's almost certainly cases where the right input would cause iText to fail. Some might blame iText at that point. We wouldn't. We'd blame the folks using iText for something that is expressly unsupported. --Mark Storer Senior Software Engineer Cardiff.com import

Re: [iText-questions] how to save modiefied annotation text

2011-04-20 Thread Mark Storer
has arranged with ISO to distribute the PDF Specification, ISO 32000-2008 for free online: http://www.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/PDF32000_2008. pdf --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null

Re: [iText-questions] Editing existing PDF file - Newly added textnot visible

2011-04-20 Thread Mark Storer
PDF's Z-order is simply the order in which things are drawn. If you draw A then B, B is on top of A. If B happens to completely cover A, then you won't see A when the PDF is rendered. You're adding a PdfImportedPage to the page after you draw your text. Add it before instead. --Mark Storer

Re: [iText-questions] the position of the image in the graphics2D

2011-04-19 Thread Mark Storer
Calculating scale boils down to x^2 + y^2 = z^2 Or in your case, a^2 + b^2 = scaleX^2 and c^2 + d^2 = scaleY^2. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: curt [mailto:karray.abdes

Re: [iText-questions] PDF looses ability to save changes?

2011-04-13 Thread Mark Storer
This question has been asked and answered literally a dozen times on this mailing list. Please search the list archives. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; From

Re: [iText-questions] Highlighting text

2011-04-12 Thread Mark Storer
care of Right Now. Written, unit tested, checked in. 5.1 will contain two new getPageResources functions (page number and page dictionary versions). Quite trivial, but you actually need to know the correct PdfName constant to use. --Mark Storer Senior Software Engineer Cardiff.com import

  1   2   3   4   5   6   7   8   9   >