[iText-questions] Itext checkbox is always checked

2013-08-04 Thread Jason Hamm
I am using Itext to create a pdf and I cannot get the checkbox to uncheck. Here is my code: RadioCheckField bt = new RadioCheckField(writer, new Rectangle(100, 100, 200, 200), "radio", "v1"); bt = new RadioCheckField(writer, new Rectangle(300, 300, 400, 400), "check

Re: [iText-questions] Tagging content

2013-02-13 Thread Jason Kissinger
y_v3.pdf>, > fill out the form and submit it. Then you'll have your legal prefix. > > Leonard > > From: Jason Kissinger > Reply-To: Post here > Date: Wednesday, February 13, 2013 2:56 PM > > To: Post here > Subject: Re: [iText-questions] Tagging content >

Re: [iText-questions] Tagging content

2013-02-13 Thread Jason Kissinger
To answer my own question (assume I'm on right track)... Image doesn't represent an /XObject, but PDFTemplate does. Doing: pdfTemplate.getAdditional().put(new PdfName("myId"), new PdfString("image1")); adds '/myId' to xobject's dictionary and I can now find the image stream by myId. Is that t

Re: [iText-questions] Tagging content

2013-02-13 Thread Jason Kissinger
such as blind users). Putting your value in there will screw > them up :( > > Leonard > > From: Jason Kissinger > Reply-To: Post here > Date: Wednesday, February 13, 2013 12:54 PM > To: Post here > Subject: Re: [iText-questions] Tagging content > > Righto, I'

Re: [iText-questions] Tagging content

2013-02-13 Thread Jason Kissinger
Righto, I'll get right on that. ;-) Is there not a way to tag an object in any way so that I can pull it later? On Feb 13, 2013 11:46 AM, "Leonard Rosenthol" wrote: > Jason, using the Alt for an image is NOT the right way to accomplish what > you want. > > You shou

[iText-questions] Tagging content

2013-02-13 Thread Jason Kissinger
Would the new accessibility api be appropriate for tagging an /XObject (ie image) so that it can later be retrieved by test automation? Or is there something else? I built 5.4.0 from svn, and added accessibleAttribute to image: image.setAccessibleAttribute(PdfName.ALT, new PdfString("image1"));

[iText-questions] Tagging content

2013-02-13 Thread Jason Kissinger
Would the new accessibility api be appropriate for tagging an /XObject (ie image) so that it can later be retrieved by test automation? Or is there something else? I built 5.4.0 from svn, and added accessibleAttribute to image: image.setAccessibleAttribute(PdfName.ALT, new PdfString("image1"));

[iText-questions] Combobox GetListOptionDisplay() returns null

2012-11-13 Thread Jason Wilczak
e info for this, thanks. -- *Jason Wilczak* *Software Developer* ** *(860) 752-2897 Cell* *jason.wilc...@gmail.com* -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight int

Re: [iText-questions] My plan to shut down the mailing-list

2012-10-10 Thread Jason Berk
e anyway...and that would allow for better usability I don't think you'd be "wrong" to say anything beyond SO would require paid support. I do think SO is more Q/A designed and won't work for a general discussion about a specific topic ("closed as not a qu

Re: [iText-questions] reading text at a particular place on a page?

2012-07-06 Thread Jason Berk
place on a page? Thanks for hangin with me on this Jason. I appreciate the help. I think the "wrinkle" is that I need to be able to programmatically figure out where to split the PDF's based on the content. Also, the solution needs to be fairly flexible. The example I g

Re: [iText-questions] reading text at a particular place on a page?

2012-07-06 Thread Jason Berk
file using tools like Pdf2Text and PdfSAM would work Jason From: Tom Malia [mailto:tomma...@tandtdatasolutions.com] Sent: Friday, July 06, 2012 3:05 PM To: 'Post all your questions about iText here' Subject: Re: [iText-questions] reading text at a particular place on a page? Thank

Re: [iText-questions] reading text at a particular place on a page?

2012-07-06 Thread Jason Berk
I've used this one: http://linux.die.net/man/1/pdftotext Pulled account numbers off of IRS forms so I could load them into a database by clipping the bottom left cornerworked really well There's also: http://www.colorpilot.com/pdf2text-command-line.html From: Tom Malia [mailto:tomm

Re: [iText-questions] PDF merge - filesize after

2012-06-20 Thread Jason Berk
I’m a java guy, but I’m curious about this method signature: static bool RewritePdfFiles(string pdfFile, string outputFile) if you are trying to merge PDFs, shouldn’t you be doing this: static bool MergePdfs(// an array of PDFs, string mergedPdfFile); or maybe even static [bytes

Re: [iText-questions] PDF merge - filesize after

2012-06-19 Thread Jason Berk
You need to post your code if you want any actual helpuntil you do so, all anybody can say for sure is that you're doing something wrong. Help us help you -Original Message- From: Nick Bannister [mailto:bannister.n...@hotmail.com] Sent: Tuesday, June 19, 2012 3:21 PM To: 1T3XT BV

[iText-questions] replace HQ images

2012-06-07 Thread Jason Berk
ize X or larger, resize the image and reinsert it? There could be more than one image on a page, but marketing content is by far the "largest" in terms of byte size or viewable size. Any suggestions? Jason Berk This is a transmission from Purdue Federal Credit Union (Purdue Federal) a

[iText-questions] FW: table question

2012-05-02 Thread Jason Berk
urrent page" concept. Can you provide some guidance on how to accomplish this? Is there a way to modify header rows on the fly in an on page start/end event? Does this even make sense. Jason Berk jb...@purduefed.com This is a transmission from Purdue Federal Credit Union (Purd

[iText-questions] adding the same page to multiple PDFs

2012-04-27 Thread Jason Berk
ultiple PDFs created in a loop? Something like: Image disclosure = //get disclosure page For(Long account:accounts){ Byte[] pdf = // generate pdf for account pdf = addDisclosure(disclosure, pdf); } Jason Berk This is a transmission from Purdue Federal Credit Union (Purdue Federal)

Re: [iText-questions] How to set the different margins for differentpages in a Document?

2012-04-22 Thread Jason Berk
document.setMargins(...) document.newPage() -Original Message- From: vpenugo [mailto:vidyasagar.penugo...@gmail.com] Sent: Fri 4/20/2012 11:07 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] How to set the different margins for differentpages in a Document? Hi,

Re: [iText-questions] table forced to next page

2012-04-16 Thread Jason Berk
t(); Return spaceNeeded + (currentHeight > 0 ? table.spacingBefore() : 0f) <= indentTop() - currentHeight - indentBottom() - margin; The fitsPage method is only called if getKeepTogether() is true, so that should do it Thanks, Jason -Original Message- From: Jason Berk [mailto:jb

[iText-questions] table forced to next page

2012-04-13 Thread Jason Berk
l be "fixed/changed"? If not, how can I go about patching and resubmitting? Thanks for any help/direction Jason Berk jb...@purduefed.com This is a transmission from Purdue Federal Credit Union (Purdue Federal) and is intended solely for its authorized recipient(s), and may c

Re: [iText-questions] PdfPTable keepTogether with skipped header rows

2012-02-17 Thread Jason Berk
Should I open a bug ticket for this, or is it considered a "feature" Thanks, Jason -Original Message----- From: Jason Berk [mailto:jb...@purduefed.com] Sent: Thursday, February 09, 2012 2:08 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] PdfPTable keepTog

Re: [iText-questions] PDF Table

2012-02-13 Thread Jason Berk
ed textlike on tax forms Jason From: Gerold Krommer [mailto:gerold.krom...@rrdgds.at] Sent: Monday, February 13, 2012 9:43 AM To: Post all your questions about iText here Subject: Re: [iText-questions] PDF Table This is next to impossible. By rendering to PDF usually all structure

[iText-questions] PdfPTable keepTogether with skipped header rows

2012-02-09 Thread Jason Berk
rue). Is this by design? Can someone else confirm this? I'm using iText 5.1.2 Jason Berk jb...@purduefed.com www.purduefed.com 800.627.3328 x8902 This is a transmission from Purdue Federal Credit Union (Purdue Federal) and is intended solely for its authorized recipient(s), a

Re: [iText-questions] Insert image in Pdf

2012-02-03 Thread Jason Berk
Buy the book or look it up on the website. No one is going to do the work for youshow some initiative. From: Karthikeyan M [mailto:karthikey...@maxval-soft.com] Sent: Friday, February 03, 2012 2:33 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Insert image in

[iText-questions] pdf with embedded video

2012-01-05 Thread Jason Berk
Anybody got an example of how to embed video into a PDF? Marketing asked me if this was doable and I figured this would be the first place to ask... Thanks Jason Berk jb...@purduefed.com This is a transmission from Purdue Federal Credit Union (Purdue Federal) and is intended solely for its

Re: [iText-questions] page numbers in footer

2011-12-20 Thread Jason Berk
ng.format("Page %d of %d", page, totalPages); ColumnText.showTextAligned( // add pageXofY to the document being written by the stamper ) } reader.close(); stamper.close(); //save stamper bytes if writing to memory Jason -Original Message- From: Aarthi [mailto:aarthi..

Re: [iText-questions] XML Worker

2011-12-01 Thread Jason Berk
y to keep track of margins is reset. Hence I suspect somewhere a margin is applied where it should not when inside a body. Regards Balder On 1/12/2011 15:38, Jason Berk wrote: I didn't hear back I don't have the mailing list with me all the time, too much traffic for mobile ;) and no

Re: [iText-questions] XML Worker

2011-12-01 Thread Jason Berk
I didn't hear back on this and just wanted to know if I should be filling out a bug report someplace or following some other protocol. Jason -Original Message- From: Jason Berk [mailto:jb...@purduefed.com] Sent: Wednesday, November 30, 2011 9:43 AM To: Post all your questions

Re: [iText-questions] XML Worker

2011-11-30 Thread Jason Berk
ch the width of the document's usable horizontal space (doc.right() - doc.left()) Jason -Original Message- From: Balder VC [mailto:li...@redlab.be] Sent: Wednesday, November 30, 2011 5:28 AM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] XML Worker Tables are

[iText-questions] XML Worker

2011-11-29 Thread Jason Berk
With XML Worker how do I make my have a width of 100% of the page? Jason Berk jb...@purduefed.com www.purduefed.com 800.627.3328 x8902 This is a transmission from Purdue Federal Credit Union (Purdue Federal) and is intended solely for its authorized recipient(s), and may contain information

Re: [iText-questions] FYI about xmlworker and BR tags

2011-11-29 Thread Jason Berk
Duh I owe a dollar to the dunce jar From: Alexis Pigeon [mailto:pigeon.ale...@gmail.com] Sent: Tuesday, November 29, 2011 10:41 AM To: Post all your questions about iText here Subject: Re: [iText-questions] FYI about xmlworker and BR tags Hi Jason, On 29 November 2011 16:24, Jason

[iText-questions] FYI about xmlworker and BR tags

2011-11-29 Thread Jason Berk
setInitialLeading(12); document.open(); XMLWorkerHelper.getInstance().parseXHtml(writer, document, new FileReader(PROJECT_DIR + "/test.html")); document.close(); } If I change "" to "" it works. Jason Berk

[iText-questions] space between lines of a paragraph using HTML Worker

2011-11-23 Thread Jason Berk
? Jason Berk jb...@purduefed.com This is a transmission from Purdue Federal Credit Union (Purdue Federal) and is intended solely for its authorized recipient(s), and may contain information that is confidential and or legally privileged. If you are not an addressee, or the employee or agent

[iText-questions] sorry about that.....

2011-11-07 Thread Jason Berk
"IText" shows up before "ITStaff" in my exchangeplease disregard that stupid mistake.... Sorry all. Jason This is a transmission from Purdue Federal Credit Union (Purdue Federal) and is intended solely for its authorized recipient(s), and may contain information that is

[iText-questions] Canceled: Jason - Time Back

2011-11-07 Thread Jason Berk
t;:2025T00 SUMMARY:Canceled: Jason - Time Back UID:04008200E00074C5B7101A82E008003103CF279DCC01000 01000A8AAA6E0F6BC1144B7CAA43FE7EE1662 ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN="'Post all your questions about iText here'":MAILTO:i

[iText-questions] Jason - Time Back

2011-11-07 Thread Jason Berk
ions@lists.sourceforg e.net ORGANIZER;CN="Jason Berk":MAILTO:jb...@purduefed.com LOCATION:Home DTEND;TZID="(GMT-05.00) Eastern Time (US & Canada)":2026T00 DESCRIPTION:Time back from conference on 11/12/2011\N SEQUENCE:0 PRIORITY:5 CLASS: CREATED:2007T133236Z L

Re: [iText-questions] "flagging" pages for post processing

2011-10-28 Thread Jason Berk
0/27/11 3:12 PM, "Jason Berk" wrote: >Is there any way to "flag" a page when building a PDF (like using >dictionary) so that you can post-process the binary PDF and make >decisions based on the flags. > >The pages in my PDF are of a certain "type" (

[iText-questions] "flagging" pages for post processing

2011-10-27 Thread Jason Berk
uld use that index to add all non-member specific content like logos, and other static content. The pattern would be like this: Create PDF Add all member specific content, flagging each page along the way Close PDF Stamp on page X of Y and any other "common" content based on page

Re: [iText-questions] Why doesnt iText add tables which are near thepage buttom to the document?

2011-10-19 Thread Jason Berk
table.setKeepTogether(true) document.add(table) -Original Message- From: shakur [mailto:kenanpw...@gmail.com] Sent: Wed 10/19/2011 6:51 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Why doesnt iText add tables which are near thepage buttom to the document? I h

[iText-questions] embedding fonts

2011-10-19 Thread Jason Berk
public static final Font BASE = FontFactory.getFont(BaseFont.HELVETICA, 9); public static final Font BOLD = FontFactory.getFont(BaseFont.HELVETICA, 9, Font.BOLD); private Fonts() { // this is a utility class...do not instantiate it! } } Jason Berk jb

Re: [iText-questions] Changing Page Rotation

2011-10-17 Thread Jason Berk
simple google search: http://itext-general.2136553.n4.nabble.com/How-to-change-only-one-page-orientation-inside-a-multi-page-document-td2171022.html -Original Message- From: Hugh McLaughlin [mailto:h...@kmcnetwork.com] Sent: Mon 10/17/2011 8:21 PM To: itext-questions@lists.sourceforge.ne

Re: [iText-questions] Autofitting Table cells

2011-10-17 Thread Jason Berk
In java you could do: Dim cell As PdfPCell = New PdfPCell(New Phrase("Report\nDate", georgiablack)) Not sure about #1 Jason From: Hugh McLaughlin [mailto:h...@kmcnetwork.com] Sent: Monday, October 17, 2011 12:18 PM To: itext-questions@lists.sourceforge.net Subje

[iText-questions] advance vertical position manually?

2011-10-06 Thread Jason Berk
Is there any way to manually advance the vertical position after adding absolutely positioned content? Jason Berk jb...@purduefed.com This is a transmission from Purdue Federal Credit Union (Purdue Federal) and is intended solely for its authorized recipient(s), and may contain information

[iText-questions] PdfPCell set Phrase

2011-10-03 Thread Jason Berk
Would it be possible in a future release to modify setPhrase(Phrase p) on PdfPCell to return the cell so you can do this all on one line? table.addCell(myCell.setPhrase("my text", MyFonts.BOLD)); Jason Berk jb...@purduefed.com This is a transmission from Purdue Federal Credit Uni

Re: [iText-questions] evenly distribute content across page

2011-10-03 Thread Jason Berk
Conveniently, I have a table event for alternating rows. In it, added this line: numRowsAdded = 3 * (heights.length - 2) * pageCount; I'll clean up my complete code and repost it later today/tomorrow... Jason -Original Message- From: 1T3XT BVBA [mailto:i...@1t3xt.info] Sent: M

Re: [iText-questions] evenly distribute content across page

2011-10-03 Thread Jason Berk
How do you know how many rows of the table got added to the column? When you move to the next page, you have to recalculate the columns which is dependent on how much data you have left to add to the page. Jason -Original Message- From: 1T3XT BVBA [mailto:i...@1t3xt.info] Sent

Re: [iText-questions] evenly distribute content across page

2011-10-01 Thread Jason Berk
DuhI just got that example up and running in my eclipse...didn't make the mods you advised. Sorry about that...let me follow your suggestions. Jason -Original Message- From: 1T3XT BVBA [mailto:i...@1t3xt.info] Sent: Saturday, October 01, 2011 12:20 PM To: Post all your ques

Re: [iText-questions] evenly distribute content across page

2011-10-01 Thread Jason Berk
I'll send in a visual example in a minute Thanks for all the help, Jason -Original Message- From: 1T3XT BVBA [mailto:i...@1t3xt.info] Sent: Saturday, October 01, 2011 9:42 AM To: Post all your questions about iText here Subject: Re: [iText-questions] evenly distribute content

Re: [iText-questions] Help Required regarding onStartPage method

2011-09-30 Thread Jason Berk
Don’t add content in “onStartPage()”. Set a boolean variable in “onStartPage()” that you then will evaluate in “onEndPage()” and add your content there. Jason From: Prashanth Palleti [mailto:prashanth...@gmail.com] Sent: Friday, September 30, 2011 2:09 PM To: itext-questions

Re: [iText-questions] evenly distribute content across page

2011-09-29 Thread Jason Berk
I appreciate you taking a stab at it... Hopefully my code can help someone else jason From: Iliadis Yannis [mailto:ilyan...@gmail.com] Sent: Thursday, September 29, 2011 9:52 AM To: Post all your questions about iText here Subject: Re: [iText-questions] evenly distribute content

Re: [iText-questions] evenly distribute content across page

2011-09-29 Thread Jason Berk
nt the table is returned. See the attached code and PDF. Jason From: Iliadis Yannis [mailto:ilyan...@gmail.com] Sent: Thursday, September 29, 2011 4:22 AM To: Post all your questions about iText here Subject: Re: [iText-questions] evenly distribute content across page Hi Jason

Re: [iText-questions] evenly distribute content across page

2011-09-28 Thread Jason Berk
$8.00 10 $10.00 // BLANK CELLS// Jason -Original Message- From: Jason Berk [mailto:jb...@purduefed.com] Sent: Wednesday, September 28, 2011 2:38 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] evenly distribute content across page I need to produce a &q

[iText-questions] evenly distribute content across page

2011-09-28 Thread Jason Berk
complex table logic. That said, I think it's just a matter of using list.sublist() to create "lists of columns" and adding items to a table per the same index on all the sub lists Thanks for any help / suggestions Jason Berk jb...@purduefed.com This is a transmission f

[iText-questions] PdfPTable - right aligning a column?

2011-09-21 Thread Jason Berk
s for any suggestions.... Jason Berk This is a transmission from Purdue Federal Credit Union (Purdue Federal) and is intended solely for its authorized recipient(s), and may contain information that is confidential and or legally privileged. If you are not an addressee, or the employee or

[iText-questions] image setSpacingAfter() not working?

2011-08-02 Thread Jason Berk
(new Phrase("row: " + i)); } doc.add(table); // no space between the image and the table! doc.close(); } catch (Exception e) { e.printStackTrace(); } }} Jason Berk jb...@purduefed.com www

Re: [iText-questions] Fwd: Document getBottomMargin() bug

2011-07-31 Thread Jason Berk
Sometimes I even surprise myself :-) Let me finish coding up my "workaround" and I'll post it. Maybe it will be helpful to others... Jason -Original Message- From: 1T3XT BVBA [mailto:i...@1t3xt.info] Sent: Saturday, July 30, 2011 12:13 AM To: Post all your questions a

Re: [iText-questions] Fwd: Document getBottomMargin() bug

2011-07-29 Thread Jason Berk
what's more important is that I understand the issue, and have a work around in place. Thanks again, Jason From: 1T3XT BVBA [mailto:i...@1t3xt.info] Sent: Friday, July 29, 2011 12:26 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Fwd: Document getB

Re: [iText-questions] Fwd: Document getBottomMargin() bug

2011-07-29 Thread Jason Berk
Sample provided When you say PdfDocument, do you mean "writer.getDirectContent().getPdfDocument()"? Before I forget to say itTHANK YOU for spending the time to help me understand my issue and your willingness to share. Jason import java.io.Fil

Re: [iText-questions] Fwd: Document getBottomMargin() bug

2011-07-29 Thread Jason Berk
rn the unit set by the most recent setMargins(...), not the actual bottom of the document Example on the way Jason From: 1T3XT BVBA [mailto:i...@1t3xt.info] Sent: Friday, July 29, 2011 11:20 AM To: Post all your questions about iText here Subject: Re: [iText-questions

Re: [iText-questions] Fwd: Document getBottomMargin() bug

2011-07-29 Thread Jason Berk
ilto:i...@1t3xt.info] Sent: Friday, July 29, 2011 2:44 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Fwd: Document getBottomMargin() bug On 28/07/2011 23:29, Jason Berk wrote: Do table events still fire if writing a table via writeSelectedRows()? Tab

Re: [iText-questions] Fwd: Document getBottomMargin() bug

2011-07-28 Thread Jason Berk
positioning for everything… Do table events still fire if writing a table via writeSelectedRows(….)? Save me from grepping the book… Jason From: Jason Berk [mailto:jb...@purduefed.com] Sent: Thursday, July 28, 2011 2:05 PM To: Post all your questions about iText here Subject: Re: [iText

Re: [iText-questions] Fwd: Document getBottomMargin() bug

2011-07-28 Thread Jason Berk
t solution? Write the first 3 pages to PDF 1 Write the next 1 to PDF 2 Write the rest to PDF 3 Concatenate. Or write 1..3,5..N to PDF 1 Write 4 to PDF 2 Do a special concatenate which reads 1..3, adds 4, adds the rest. Sent while on the move Begin forwarded message: Fr

Re: [iText-questions] Document getBottomMargin() bug

2011-07-28 Thread Jason Berk
argins so they are active on page 5+? Hh Original Message- From: 1T3XT BVBA [mailto:i...@1t3xt.info] Sent: Thursday, July 28, 2011 9:58 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Document getBottomMargin() bug On 28/07/2011 15:42, Jason Berk wr

Re: [iText-questions] Document getBottomMargin() bug

2011-07-28 Thread Jason Berk
Excellent. That's what I needed to know. Thanks for the help. I'll adapt my example and repost so others can benefit. Thanks again, Jason -Original Message- From: 1T3XT BVBA [mailto:i...@1t3xt.info] Sent: Thursday, July 28, 2011 9:58 AM To: Post all your questions about

Re: [iText-questions] Document getBottomMargin() bug

2011-07-28 Thread Jason Berk
different A and B location. Is the rule "once you change margins, top/bottom/left/right may not return what you expect"? Thanks for always helping, Jason import java.io.File; import java.io.FileOutputStream; import com.itextpdf.text.BaseColor; import com.itextpdf.text.Docum

Re: [iText-questions] Document getBottomMargin() bug?

2011-07-27 Thread Jason Berk
neTo(doc.left(), doc.top()); canvas.lineTo(doc.right(), doc.top()); canvas.lineTo(doc.right(), doc.bottom()); canvas.lineTo(doc.left(), doc.bottom()); canvas.stroke(); } } -Original Message- From: Jason Berk [mailto:jb...@purdu

[iText-questions] Document getBottomMargin() bug

2011-07-27 Thread Jason Berk
hat if use doc.bottomMargin(), I get back the wrong size. In other words, the correct margins are being used by doc.add(), but not returned via the getters. Anybody else ever seen this? Jason This is a transmission from Purdue Federal Credit Union (Purdue Federal) and is intended solely for its

[iText-questions] skipFirstHeader

2011-07-14 Thread Jason Berk
http://itext-general.2136553.n4.nabble.com/Problems-using-skipFirstHeade r-for-a-table-displayed-on-a-new-page-td3436788.html so is this fix now in 5.1.1? I've been waiting for something like this for a long time... :-) I have the _exact_ same issue as Richard. This is a transmission from Purdue

Re: [iText-questions] Generating duplicate PDFs

2011-05-20 Thread Jason Berk
Not sure I understand exactly what you want, but I create a PDF in memory and then use http://download.oracle.com/javase/6/docs/api/java/util/Arrays.html#copyO f(byte[], int) to copy it and store the copy in the DB. You could flatten the original after you make the copy. Jason

[iText-questions] QR Code whitespace padding

2011-05-03 Thread Jason Berk
code. Just curious Jason This is a transmission from Purdue Federal Credit Union (Purdue Federal) and is intended solely for its authorized recipient(s), and may contain information that is confidential and or legally privileged. If you are not an addressee, or the employee or agent respon

Re: [iText-questions] Need simple example for adding header/footer to an existing PDF file using iText ..

2011-04-22 Thread Jason Berk
PdfPTable header = _createHeader(); PdfPTable footer = _createFooter(); ByteArrayOutputStream newPdf = new ByteArrayOutputStream(); PdfReader originalPdf = new PdfReader(originalPdf); PdfStamper stamper = new PdfStamper(originalPdf, newPdf); PdfContentByte under = null; int totalPages = or

Re: [iText-questions] Table size or width?

2011-04-22 Thread Jason Berk
Yeah, buy the book...it's a MUST READ if you are going to use iText with any significance. From: 1T3XT BVBA [mailto:i...@1t3xt.info] Sent: Friday, April 22, 2011 10:32 AM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Table size or width? Op 22/04/2011 15:51

Re: [iText-questions] Table size or width?

2011-04-22 Thread Jason Berk
table.setWidthPercentage(100); From: New Developer [mailto:secur...@isscp.com] Sent: Friday, April 22, 2011 9:52 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Table size or width? Hi I'm ned to itextPDF and struggling with table PdfPTable table = new P

Re: [iText-questions] RuntimeExcpetion - Size of pageReferences and currentPageNumber -1 Are Not Equal

2011-04-15 Thread Jason DeLawder
your question about the bookmarks being off by a single page. To create the bookmark PdfDestination I call getVerticalPosition(true), I thought that the result is just the y coordinate of the current vertical position within the entire document. What do you mean by off by a single page? -- Jason

Re: [iText-questions] RuntimeExcpetion - Size of pageReferences and currentPageNumber -1 Are Not Equal

2011-04-14 Thread Jason DeLawder
your question about the bookmarks being off by a single page. To create the bookmark PdfDestination I call getVerticalPosition(true), I thought that the result is just the y coordinate of the current vertical position within the entire document. What do you mean by off by a single page? -- Jason

[iText-questions] RuntimeExcpetion - Size of pageReferences and currentPageNumber -1 Are Not Equal

2011-04-12 Thread Jason DeLawder
I have written an application that exports hundreds of PDF documents from a content repository and then merges those documents into a single PDF document. Any PDFs that are either encrypted or corrupted are supplied to the requester as attachements to the merged PDF (ideally these shouldn't exist

Re: [iText-questions] question about adding a table to the document

2011-04-11 Thread Jason Berk
I believe you could either use CollumnText or, if you really want to keep it simple with doc.add( ), you'd have to create an outer table, and nest your two tables inside itthen add that outer table to the doc. Don't forget to make your padding 0 on the outer table. Make sense? From

Re: [iText-questions] Problems using skipFirstHeader for a tabledisplayed on a new page.

2011-04-08 Thread Jason Berk
I believe that's be design. SkipFirstHeader will be ignored if the table is the first/only item added via doc.add( ) Jason From: Palmer, Richard [mailto:richard.pal...@catlin.com] Sent: Friday, April 08, 2011 11:42 AM To: itext-questions@lists.sourceforge.net Subject: [iText-ques

Re: [iText-questions] form field page

2011-04-07 Thread Jason Berk
Awesome. I'm always making sure each pushbutton has a unique name, so I'd be using getPage(0) for sure. I'm only using pushbuttons for image placeholders. You rock. Jason -Original Message- From: Mark Storer [mailto:msto...@autonomy.com] Sent: Thursday, April 07,

[iText-questions] form field page

2011-04-07 Thread Jason Berk
Is there any way to determine what page a form field appears on? For example, if I wanted to change the label of a button to "this button appears on page X" where X is page number of the page that has the button.... Jason This is a transmission from Purdue Federal Credit Union (Purd

Re: [iText-questions] naming generated pdf from servlet

2011-04-06 Thread Jason Berk
Not sure if you are doing it the way I wasbut the link the user clicked on was: view/[myDocType]/[docId]/MM__Statement.pdf#pagemode=none myDocType could be either T for tax forms, S for statement or I for insert docId was the rowID of the document in the statement, tax or insert ta

Re: [iText-questions] getNewPushButtonFromField( )

2011-04-05 Thread Jason Berk
y so. I can't figure out reading the javadocs how to get from a field named "myButton" back to an actual instance of a Pushbutton. Sorry if I pissed you offI think I'm using the list appropriately. I'm looking for a "no, you really can't do that with iTe

Re: [iText-questions] getNewPushButtonFromField( )

2011-04-05 Thread Jason Berk
Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; Disclaimer DisCard = null; ____ From: Jason Berk [mailto:jb...@purdueefcu.com] Sent: Tuesday, April 05, 2011 10:01 AM To: Post all your q

Re: [iText-questions] getNewPushButtonFromField( )

2011-04-05 Thread Jason Berk
neer Cardiff.com import legalese.Disclaimer; Disclaimer DisCard = null; ____ From: Jason Berk [mailto:jb...@purdueefcu.com] Sent: Tuesday, April 05, 2011 6:34 AM To: itext-questions@lists.sourceforge.net

[iText-questions] getNewPushButtonFromField( )

2011-04-05 Thread Jason Berk
/** * Creates a new pushbutton from an existing field. This pushbutton can be changed and be used to replace * an existing one, with the same name or other name, as long is it is in the same document. To replace an existing pushbutton * call {@link #replacePushbuttonField(St

[iText-questions] getNewPushButtonFromField( )

2011-04-05 Thread Jason Berk
When I call getImage() from the getNewPushbuttonFromField() I get null. Document doc = new Document(PageSize.LETTER, 18, 18, 288, 36); ByteArrayOutputStream stream = new ByteArrayOutputStream(); PdfWriter writer = PdfWriter.getInstance(doc, stream); doc.open(); float pageTop = doc.getPag

Re: [iText-questions] replacePushButtonField image

2011-04-04 Thread Jason Berk
getImage() of the original button is returning null Jason -Original Message- From: Mark Storer [mailto:msto...@autonomy.com] Sent: Mon 4/4/2011 7:22 PM To: Post all your questions about iText here Subject: Re: [iText-questions] replacePushButtonField image It's still there if you u

[iText-questions] replacePushButtonField image

2011-04-04 Thread Jason Berk
I replaced the image of my pushbutton with a lower quality image, yet the size of my PDF increased significantly. Is the original image still in the dictionary? Jason This is a transmission from Purdue Federal Credit Union (Purdue Federal) and is intended solely for its authorized recipient(s

Re: [iText-questions] same image, two absolute positions

2011-03-17 Thread Jason Berk
ecifics of the image jason From: 1T3XT BVBA [mailto:i...@1t3xt.info] Sent: Thursday, March 17, 2011 12:02 PM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] same image, two absolute positions Op 17/03/2011 16:54, Jason Berk schreef: I'll have to test

Re: [iText-questions] same image, two absolute positions

2011-03-17 Thread Jason Berk
I'll have to test, but I think I figured it out...I added my logo to the doc at location A. Then I close and stamp a "page x of y" and a logo in the header at location B. Same logo, two writersthat's probably my issue. Jason From: Balder [mailto:bal...@redlab

[iText-questions] same image, two absolute positions

2011-03-17 Thread Jason Berk
If I add the same image to a document twice, each time with a different absolute position, does that count as two different images? The size of my PDF is increasing significantly when adding my company logo to a second location. Jason This is a transmission from Purdue Federal Credit Union

[iText-questions] columnText verify table fits on current page

2011-03-08 Thread Jason Berk
alHeight() accounted for header rows. I need to add a table and a bookmark to the top of my table and the table can't be split across pages. Jason This is a transmission from Purdue Federal Credit Union (Purdue Federal) and is intended solely for its authorized recipient(s), and may contain info

Re: [iText-questions] How to subscribe to this mailing list ?

2010-12-10 Thread Jason Pyeron
r 2010 18:14, dying veteran > wrote: > >> How to subscribe to this mailing list ? > > > > Please use the link appended to the bottom of any message posted to > > this mailing list. > > > >> Thanks. > >> > >> -- -=

Re: [iText-questions] Help with DottedLineSeperator.

2010-12-04 Thread jason . l . pelzel
eSeparator) c.Font = f p.Add(c) p.Add(New Chunk(i, f)) d.Add(p) Next d.Close() w.Close() End Sub ____ Jason Leland Pelzel | Digital Print

[iText-questions] Help with DottedLineSeperator.

2010-11-30 Thread Jason L Pelzel
Hi, I am using the DottedLineSeperator to build a table of contents (.net version). The result looks fine in Acrobat 7. It also prints file if direct from Acrobat 7. However, if viewed in other versions, ripped on the printer, or optimized from 7 the page number loose their position. Sometimes th

Re: [iText-questions] When will 5.0.5 be available in maven.itextpdf.com ?

2010-11-23 Thread Jason Berk
the best speakers there. Also, a "major" maven contributor was in the audience and he left the session saying "we (maven) and to look at what Gradle does and reassess our future." For now, I still just put a LIB dir at the root of my app and import the iText.jar Jason ---

Re: [iText-questions] Out Of Memory Error Concatenating MultiplePDFFiles

2010-11-10 Thread Jason Berk
agreed I'm concatenating about 40K PDFs resulting in a PDF under 100MB and 100K+ pages (with 300DPI images...god love PdfSmartCopy) and it runs in a few minutes and without any JVM tweaks. copy.freeReader( reader ) is definately the way to go.

[iText-questions] pdf size vs image format

2010-10-31 Thread Jason Berk
Image1.tif = 113.9K Image2.png = 36.5K Image2.tif = 139.5K Yet the PDF created using the PNG is 20K larger?!?! How did that happen? Jason Image first = Image.getInstance(imageDir + "/First96.png"); first.scalePercent(72f / 96 * 100, 72f / 96 * 100); Image first = Image.getInstanc

Re: [iText-questions] Header with newline chunk

2010-10-23 Thread Jason Hilton
Is there any reference in the First Edition? I'll work on the standalone example. -- View this message in context: http://itext-general.2136553.n4.nabble.com/Header-with-newline-chunk-tp3006147p3007113.html Sent from the iText - General mailing list archive at Nabble.com.

[iText-questions] Header with newline chunk

2010-10-21 Thread Jason Hilton
I'm trying to add a multiline header to my pdf pages, but everything I have tried seems to fail. I am using the ColumnText.ShowTextAligned method to create teh text content of my header. I've tried submitting a phrase containing multiple chunks (with new line chunks in the phrase), but only the

  1   2   3   >