[iText-questions] Problem compiling examples from 2nd edition of iText in Action

2014-02-06 Thread Mark Elston
. I have searched the iText jar files and, indeed, these symbols are not there. Is there some secret to getting these projects to build? Mark -- Managing the Performance of Cloud-Based Applications Take advantage of what

Re: [iText-questions] Precision Fix

2013-08-08 Thread Mark Duffill
the issue is iTextSharp does not have overloaded MoveTo/LineTo etc methods that take doubles, *forcing* us to cast to floats, thus loosing precision. Hope this makes sense. Thanks Mark -Original Message- From: iText Info [mailto:i...@1t3xt.info] Sent: 08 August 2013 12:13 To: itext

[iText-questions] Precision Fix

2013-08-08 Thread Mark Duffill
ruction.operator.inside.text.object")); } } content.Append(x).Append(' ').Append(y).Append(" m").Append_i(separator); } If you'd like to apply those changes (and I guess to the other drawing functions too) that wou

[iText-questions] Header problem adding a table which spans multiple pages using table.setComplete(false)

2012-10-31 Thread Mark Smith
the next set of rows begin on a new page. In the example below the header is missing from the third page. This works as expected for itext versions before 5.1.0 but doesn't for the latest versions. Is this a bug, or am I missing something? Thanks Mark package test;i

Re: [iText-questions] Chunk, Phrase, Paragraph font setting being overwritten

2012-05-14 Thread Mark Kauffman
sure. I can't figure out if this is a bug with itextsharp, Microsoft (C#), or Adobe Acrobat Reader or a combination of all three. I tried searching on streaming PDF's but haven't found anything yet. On Mon, May 14, 2012 at 8:42 AM, iText Info wrote: > Op 14/05/2012 6:57, Mar

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

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; Disclaimer DisCard = null; Autonomy Corp., an HP Company > -Original Message- > From: Kevin Day [mailto:ke...@trumpetinc.com] > Sent: Thursday, October 27, 201

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; Disclaimer DisCard = null; Autonomy Corp., an HP Company > -Original Mess

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=4806&view=markup --Mark Storer Se

Re: [iText-questions] HTML to PDF with XMLWorker

2011-10-15 Thread Mark Ramos
Hi Balder, I most certainly agree with that. It was not our expected scenario before. :) Thanks for all the info and guide you've provided. I'll check on them and see what I can come up with. Will keep in touch once I have update on it. Your help is very much appreciated! Sincerely,

Re: [iText-questions] HTML to PDF with XMLWorker

2011-10-15 Thread Mark Ramos
to export it in PDF. We also tried using flying-saucer which also uses iText 2.0.8 but there are items that are also not rendered properly. I appreciate giving your time to us. Thank you very much! Mark On Sat, Oct 15, 2011 at 9:51 PM, Balder VC wrote: > Hi, > > A PDF is not a brows

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; Disclaimer DisCard = null; Autonomy Corp., an HP Company > -Original Message- > Fro

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; Disclaimer DisCard = null; Autonomy Corp., an HP Company From: Lucas Francisco [mailto:dominic...@hotmail.com

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; Disclaimer DisCard = null; Autonomy Corp., an HP Company From: Tom Vermeulen

[iText-questions] HTML to PDF with XMLWorker

2011-10-13 Thread Mark Ramos
Test 1.1 Test 1.1.1 Test Mark Mark Mark Test Test html3.pdf Description: Adobe PDF document ---

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

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

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

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. --M

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

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

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

2011-10-07 Thread Mark Storer
int 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. --M

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

2011-10-07 Thread Mark Storer
e last 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; Disclaimer DisCard = null; Autonomy Corp., an HP Company ___

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/> iTe

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. --

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; Disclaimer DisCard = null; Autonomy Corp., an HP Co

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

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

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

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

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; Disclaimer DisCard =

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; Disclaimer 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; Disclaimer DisCard = null; > -Original Message- > From: mingqiang yu [mailto:mingqi..

Re: [iText-questions] Form Flattening

2011-09-16 Thread Mark Storer
e code to deal with whatever is/isn't there. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; Disclaimer DisCard = null; -- BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA http:/

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; Disclaimer DisCard = null; > -Original Mess

Re: [iText-questions] limited fonts

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

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; Disclaimer DisCard = null; From: Vahid Nasiri

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 So

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

2011-09-01 Thread Mark Storer
. You get the idea. None 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

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

2011-08-24 Thread Mark Storer
m os = response.getOutputStream(); baos.writeTo(os); os.flush(); --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; Disclaimer DisCard = null; From: n...@scalepoint.com [mailto:n...@scalepoint.com] Sen

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

2011-08-16 Thread Mark Storer
eed to buy a copy of the PDF/A spec in order to do "1a" correctly. "1b" isn't all that hard. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; Disclaimer DisCard = null; > -Original Message- > From: myworld.amol [mai

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

2011-08-15 Thread Mark Storer
alue. Not terribly 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.Di

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

2011-08-09 Thread Mark Storer
nnot predict all the amazingly clever 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

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; Disclaimer DisCard = null; From: Paulo Soares [mailto

Re: [iText-questions] Merging 3 PDF Files with annotations intact

2011-07-26 Thread Mark Storer
PdfCopy or PdfSmartCopy is your best bet. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; Disclaimer DisCard = null; From: Botte, John [mailto:john.bo...@fmglobal.com] Sent: Tuesday, July 26, 2011 8:49

Re: [iText-questions] Problems detecting page sizes of PDF documents

2011-07-26 Thread Mark Storer
s could be just about anywhere, depending on page rotation. I tend to avoid getPageSizeWithRotation. I get the page's rectangle, and I get the page's rotation. Much more control that way. --Mark Storer Senior Software Engineer Cardiff.com import legale

Re: [iText-questions] Different formatted PDF in dev Q Prod systems

2011-07-25 Thread Mark Storer
re you can configure iText to not compress content streams (though it might require tweaking the source, come to think of it), or you can use RUPS or some similar PDF inspection tool to look at the compressed streams. --Mark Storer Senior Software Engineer Cardiff.com import legalese.

Re: [iText-questions] Rotate barcode

2011-07-13 Thread Mark Storer
ontentByte functions that take transformations. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; Disclaimer DisCard = null; > -Original Message- > From: bobsyouruncle [mailto:smiths...@hotmail.com] > Sent: Tuesday, July 12, 2011 11:43 AM &g

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

2011-07-08 Thread Mark Storer
), or "by guess and by golly" the information up himself. Very Labor Intensive. But still possible... And not as labor intesive as plain ol data entry once you start talking about more than a couple instances of a particular form. --Mark Storer Senior Software Engineer Cardiff.c

Re: [iText-questions] Retrieving Document Properties

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

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; Disclaimer DisCard = null; > -Original Message- > From: sam_dev [mailto:gorgeious@gmail.com] > Sent: Thursday, July

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

2011-07-07 Thread Mark Storer
might not. No way to know without looking at the page contents. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; Disclaimer DisCard = null; From: sudhakar nallamaru [mailto:sudhakarbabu...@gmail.com] Sent:

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; Disclaimer DisCard = null; From: Steinberg, Dan [mailto:daniel.steinb...@cengage.com]

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

2011-06-30 Thread Mark Storer
pageNum ); item.addWidget( formFieldDict ); item.addWidgetRef( fieldRef ); item.addValue( formFieldDict ); item.addMerged( formFieldDict ); item.addTabOrder( fldDictsIndexInAnnotsArray ); acroFields.getFields().put(fldName, item); --Mark Storer Senior Software Eng

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

2011-06-30 Thread Mark Storer
Hard to modify 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; Disclaimer DisCard = null; > -

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

2011-06-29 Thread Mark Storer
he PDF Reference, chapter 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 legale

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

2011-06-29 Thread Mark Storer
he PDF Reference, chapter 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 legale

Re: [iText-questions] formatting

2011-06-28 Thread Mark Storer
re's a corresponding keystroke script... that may be required for the format script to function properly. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; Disclaimer DisCard = null; From: Yevgeniy Cherni

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] formatting

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

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; Disclaimer DisCard = null; From: Balder [mailto:bal...

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; Disclaimer DisCard = null; From: thiyagu rajan [mail

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

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

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

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; Discl

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.Discl

Re: [iText-questions] Default open bookmark

2011-06-14 Thread Mark Storer
m, dest, myPdfWriter); myPdfWriter.setOpenAction( 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; Disclaimer DisCard = null; > -Original Message- > From:

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

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

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 replac

Re: [iText-questions] Appearance of PdfImportedPage objectinconsistent

2011-05-25 Thread Mark Storer
erited from the graphics state that is in effect at the time Do is invoked. If you want to get the default state back, then you need to save the state at the --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; Disclaimer DisCard = null;

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

2011-05-25 Thread Mark Storer
ugh". This is where 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 Sen

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

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

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

2011-05-19 Thread Mark Storer
he registration page" 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.Di

Re: [iText-questions] Optional context retrieval

2011-05-19 Thread Mark Storer
CMaps, 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; Disclaimer 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; Disclaimer DisCard = null; > -Original Message- > From: Michael [mailto:ad...@tradeplatform.us] > Sent: Wednesda

Re: [iText-questions] Optional context retrieval

2011-05-18 Thread Mark Storer
lar font's encoding, the 0x01 is a space. 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 Ca

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; Disclaimer DisCard = null; > -Original Message- > From: Michael [mailto:ad...@tradeplatform.us] > Sent: Wednesday, May 18, 2011 9:54

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

2011-05-18 Thread Mark Storer
oord - radius, 0f, 360f); content.fill(); } --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; Disclaimer DisCard = null; From: Varunkumar Nagarajan [mailto:varunkuma...@gmail.com] Sent: Wednesda

Re: [iText-questions] Optional context retrieval

2011-05-18 Thread Mark Storer
. If Acrobat cannot 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; Disclaimer DisCard = null; > -Original Message- > From: Michael [mailto:ad...@trade

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

2011-05-18 Thread Mark Storer
roblem. I suspect your "bad" PDFs are those with rotated pages and/or pages with non "0,0" lower left corners. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; Disclaimer DisCard = null; Fro

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

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

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

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; Disclaimer DisCard = null; > -Original Message- > From: newbie2itext [mailto:newbie2c...@hotmail.com] > Sent: Wednesday, May 11, 2011 4:53 PM > To: ite

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

2011-05-06 Thread Mark Storer
have to do more text searching to figure out 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 S

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

2011-05-06 Thread Mark Storer
orms can submit 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; Disclaimer DisCard = null; > -Original Messa

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 So

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

2011-05-05 Thread Mark Storer
-01K (CosString) 1222 Subtype = Stamp (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 Sof

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; Disclaimer DisCard = null; From: Brendan Ganning [mailto:brendan.gann...@gmail.com] Sent: Thursday, May 05, 2011 10:04 AM To

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; Disclaimer DisCard = null

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() fun

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.

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

2011-05-03 Thread Mark Storer
a field value. Finally, you could 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.Di

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; Disclaimer DisC

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

2011-05-03 Thread Mark Storer
make software 'releases'. Our 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; Disclaimer DisCard = null;

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

2011-05-02 Thread Mark Storer
". That way you can just set the spacing 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; Disclaimer DisCard = null; > -Original Message- > From: TAKEG

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; Disclaimer DisCard = null; > -Original Message- > From: TAKEGATA Seiji [mailto:takeg...@veltec.co.jp] > Sent: Monday, May

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; Disclaimer DisCard = null; > -Original Message- > From: TAKEGATA Seiji [mailto:takeg...@veltec.co.jp] > Sent: Saturday, April 30, 2011 12:24 AM > To: ite

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; Disclaimer DisCard = null; > -Original Message- > From: butterfamily [mailto:k

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

2011-05-02 Thread Mark Storer
gt; Is that right? If you've already called FontFactory.registerDirectories(), then yes. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; Disclaimer DisCard = null; > -Original Message- > From: Larry Evans [mailto:cppljev...@suddenlink.net] >

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

2011-05-02 Thread Mark Storer
nsume the majority of your execution time. YMMV. Looking at the above code, you could add a "windir" environment variable to just about any system with a "/fonts" folder and be Good To Go. We might want to consider a more general enviromental variable for this very occas

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; Disclaimer DisCard = null; From: Kiran Nepal

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; Dis

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; Disclaimer

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

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

  1   2   3   4   5   6   7   8   9   10   >