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

2012-10-10 Thread Jason Berk
I'll support whatever you decide to do. I bought both books, paid for the license and have used premium support. The product is wonderful and so long as there's a medium to ask and answer questions, I'll be happy. Personally, I'd support SO as I'm in there all the time anyway...and that would

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

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

2012-07-06 Thread Jason Berk
the next page that it encounters with that pattern. Is there a way I could leverage either of these tools for that purpose? From: Jason Berk [mailto:jb...@purduefed.com] Sent: Friday, July 06, 2012 2:40 PM To: Post all your questions about iText here Subject: Re: [iText-questions] reading text

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

2012-07-06 Thread Jason Berk
point. From: Jason Berk [mailto:jb...@purduefed.com] Sent: Friday, July 06, 2012 3:52 PM To: Post all your questions about iText here Subject: Re: [iText-questions] reading text at a particular place on a page? Well, you can always call system command from .NET or Javaugly, but doable

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

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

[iText-questions] replace HQ images

2012-06-07 Thread Jason Berk
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) and is intended

[iText-questions] FW: table question

2012-05-02 Thread Jason Berk
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 (Purdue Federal) and is intended solely for its authorized recipient(s), and may contain information that is confidential

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

2012-04-27 Thread Jason Berk
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) and is intended solely for its authorized recipient(s

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
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...@purduefed.com] Sent

[iText-questions] table forced to next page

2012-04-13 Thread Jason Berk
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 contain information that is confidential and or legally privileged. If you are not an addressee

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 keepTogether

Re: [iText-questions] PDF Table

2012-02-13 Thread Jason Berk
http://www.foolabs.com/xpdf/download.html I have used pdftotext like so: pdftotext -layout -x 0 -y 745 -W 130 -H 18 test.pdf - it's an amazing tool and has saved me a few times when I needed to inspect the actual PDF and extract a small amount of consistently positioned textlike on

[iText-questions] PdfPTable keepTogether with skipped header rows

2012-02-09 Thread Jason Berk
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), and may contain information that is confidential

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

[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
You can't add page x or y until you close the document...think about it...you don't know how many pages are in the document till it's closed If you really just want a page x of y I would recommend something like this: //produce PDF doc.close(); PdfReader reader = new PdfReader(//read your

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 about

Re: [iText-questions] XML Worker

2011-12-01 Thread Jason Berk
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 code with me

Re: [iText-questions] XML Worker

2011-11-30 Thread Jason Berk
width property or table width= should work). 100% should take whole available width but if your cells also define width, it's influenced by that too. Regards Balder On 29/11/11 20:52, Jason Berk wrote: With XML Worker how do I make my table have a width of 100% of the page? Jason Berk jb

[iText-questions] FYI about xmlworker and BR tags

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

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] XML Worker

2011-11-29 Thread Jason Berk
With XML Worker how do I make my table 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

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

2011-11-23 Thread Jason Berk
tag? 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] Jason - Time Back

2011-11-07 Thread Jason Berk
BEGIN:VCALENDAR METHOD:REQUEST PRODID:Microsoft CDO for Microsoft Exchange VERSION:2.0 BEGIN:VTIMEZONE TZID:(GMT-05.00) Eastern Time (US Canada) X-MICROSOFT-CDO-TZID:10 BEGIN:STANDARD DTSTART:16010101T02 TZOFFSETFROM:-0400 TZOFFSETTO:-0500

[iText-questions] Canceled: Jason - Time Back

2011-11-07 Thread Jason Berk
BEGIN:VCALENDAR METHOD:CANCEL PRODID:Microsoft CDO for Microsoft Exchange VERSION:2.0 BEGIN:VTIMEZONE TZID:(GMT-05.00) Eastern Time (US Canada) X-MICROSOFT-CDO-TZID:10 BEGIN:STANDARD DTSTART:16010101T02 TZOFFSETFROM:-0400 TZOFFSETTO:-0500

[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 confidential and or

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

2011-10-28 Thread Jason Berk
, Jason Berk jb...@purduefed.com 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 (plain, coupon, disclosure) I would like to be able to use

[iText-questions] flagging pages for post processing

2011-10-27 Thread Jason Berk
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 type Persist PDF Any suggestions? Jason Berk jb...@purduefed.com

[iText-questions] embedding fonts

2011-10-19 Thread Jason Berk
= 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...@purduefed.com www.purduefed.com 800.627.3328

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

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 Subject:

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

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

2011-10-03 Thread Jason Berk
: Saturday, October 01, 2011 9:42 AM To: Post all your questions about iText here Subject: Re: [iText-questions] evenly distribute content across page On 28/09/2011 21:17, Jason Berk wrote: What I really need is the ability to add cells to a table from top to bottom and not left to right. I just returned

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

2011-10-03 Thread Jason Berk
, October 03, 2011 11:18 AM To: Post all your questions about iText here Subject: Re: [iText-questions] evenly distribute content across page On 3/10/2011 17:02, Jason Berk wrote: How do you know how many rows of the table got added to the column? Aha, good question. When you move to the next

[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 Union (Purdue

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

2011-10-01 Thread Jason Berk
On 28/09/2011 21:17, Jason Berk wrote: What I really need is the ability to add cells to a table from top to bottom and not left to right. I just returned from Paris (I've been teaching iText for two days), and I'm working myself through a huge pile of mail. I saw an answer to this mail, but I'm

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

2011-10-01 Thread Jason Berk
about iText here Subject: Re: [iText-questions] evenly distribute content across page On 1/10/2011 18:09, Jason Berk wrote: That's not _exactly_ what I wantedIf I had 30 things I would like three columns/tables of 10even if a column/table of 30 fit on the current page. Well, that's

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:

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

2011-09-29 Thread Jason Berk
start filling second column until page end, then third column. Create new page if there is still data left and start the same process again. It might be not that automated or elegant but it should give you the result you expect. Hope this will help you. 2011/9/28 Jason Berk jb...@purduefed.com I

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

2011-09-29 Thread Jason Berk
across page Sorry I misunderstood that you always wanted to show your data in 3 columns independent of the amount of data. And also I had the whole page in mind. Yannis 2011/9/29 Jason Berk jb...@purduefed.com That won't really work (see my second post). Assume I have 60 items and I'm starting

[iText-questions] evenly distribute content across page

2011-09-28 Thread Jason Berk
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 from Purdue Federal Credit Union (Purdue Federal) and is intended

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

2011-09-28 Thread Jason Berk
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 checks

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

2011-09-21 Thread Jason Berk
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 agent

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
I noticed the whitespace around the qrcode generated by itext is very wide compared to ones generated online. Is that by design, or is there a way to decrease that padding. I realize there has to be _some_ whitespace, but it looks like there's a 1/4 wide margin around the code. Just curious

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

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

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 =

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?

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

[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 (Purdue Federal)

Re: [iText-questions] form field page

2011-04-07 Thread Jason Berk
- From: Jason Berk [mailto:jb...@purdueefcu.com] Sent: Thursday, April 07, 2011 11:06 AM To: Post all your questions about iText here Subject: [iText-questions] form field page Is there any way to determine what page a form field appears on? For example, if I wanted to change the label

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

[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 =

[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

Re: [iText-questions] getNewPushButtonFromField( )

2011-04-05 Thread Jason Berk
; DisclaimerCardiff DisCard = null; From: Jason Berk [mailto:jb...@purdueefcu.com] Sent: Tuesday, April 05, 2011 6:34 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions

Re: [iText-questions] getNewPushButtonFromField( )

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

Re: [iText-questions] getNewPushButtonFromField( )

2011-04-05 Thread Jason Berk
; From: Jason Berk [mailto:jb...@purdueefcu.com] Sent: Tuesday, April 05, 2011 12:07 PM To: Post all your questions about iText here Subject: Re: [iText-questions] getNewPushButtonFromField( ) only if someone has called

[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] replacePushButtonField image

2011-04-04 Thread Jason Berk
a stamper in append mode, or didn't call reader.removeUnusedObjects(). Note that's READER, not stamper. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: Jason Berk [mailto:jb

[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

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

2011-03-17 Thread Jason Berk
17, 2011 11:47 AM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] same image, two absolute positions Hi On 17/03/2011 16:34, Jason Berk wrote: If I add the same image to a document twice, each time with a different absolute position, does that count as two different

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

2011-03-17 Thread Jason Berk
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, but I think I

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

2011-03-08 Thread Jason Berk
Can someone show me how to use ColumnText to test if a table fits in the remaining space of a page? Will this give me different results then the much simpler: if(myTable.getTotalHeight() writer.getVerticalPosition(true) - doc.bottomMargin()){ doc.newPage(); } wasn't sure if getTotalHeight()

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

2010-11-23 Thread Jason Berk
I attended the Spring One conference a few weeks ago and Gradle was a very hot topic. http://www.theserverside.com/news/thread.tss?thread_id=49165 I also avoid maven where possible. I find when it saves me time, it only saved me a few hours at most, but when it gets in my way, it's days of

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

[iText-questions] pdf size vs image format

2010-10-31 Thread Jason Berk
I created a PDF that has two images, created from .tiff files and the resulting PDF is roughly 50K. I then converted the .tiff files to .png and recreated the same PDF, which is now 70K. Yet, the file size of the image itself decreased significantly when converting to PNG. Image1.png = 41.6K

[iText-questions] change existing PDFs font color

2010-10-13 Thread Jason Berk
I have a single page PDF that contains nothing but text (disclaimers), but the font color isn't black. I need to add this single page to a PDF I'm creating dynamically, but I'd like to change the font color to black along the way. Is this possible? Jason ***This is a transmission from Purdue

Re: [iText-questions] change existing PDFs font color

2010-10-13 Thread Jason Berk
; DisclaimerCardiff DisCard = null; -Original Message- From: Jason Berk [mailto:jb...@purdueefcu.com] Sent: Wednesday, October 13, 2010 12:26 PM To: Post all your questions about iText here Subject: [iText-questions] change existing PDFs font color I have a single page PDF that contains nothing

Re: [iText-questions] how would you do.....

2010-09-30 Thread Jason Berk
? Then it should be a breeze to insert extra pages with the disclaimer at the appropriate places. // Pseudo-code for (pdf in pdfs) { for (page in pdf) { if (time to add disclaimer) { add disclaimer page } add page } } /Klas Jason Berk skrev 20:59: I'm

Re: [iText-questions] how would you do.....

2010-09-30 Thread Jason Berk
not sure why that would magically create an extra EMC (end marked content), but it Sounds Fishy. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; -Original Message- From: Jason Berk [mailto:jb...@purdueefcu.com

[iText-questions] how do you mark a page for future processing

2010-09-30 Thread Jason Berk
Is there a way to mark or tag a page in a pdf I'm creating so that I can programmatically modify that page later when processing the pdf in a different application. Something like create page 1, create page 2 and mark it as special, create page 3. Then in a completely different application, read

Re: [iText-questions] how would you do.....

2010-09-30 Thread Jason Berk
, but apparently you know the position when you create each individual pdf, so you could add a database field to store the position. But it might require less refactoring if you can place an invisible marker in the pdf. /Klas Jason Berk skrev 20:59: I assume that you know where to place the disclaimer

Re: [iText-questions] how would you do.....

2010-09-30 Thread Jason Berk
: Jason Berk [mailto:jb...@purdueefcu.com] Sent: Thursday, September 30, 2010 9:15 AM To: Post all your questions about iText here Subject: Re: [iText-questions] how would you do. But it might require less refactoring if you can place an invisible marker

[iText-questions] how would you do.....

2010-09-29 Thread Jason Berk
I'm producing statements with iText (and it rocks BTW). I produce a single PDF for each account and load the PDF into a DB. Then I concatenate all the statements that need printed into one big PDF file and give them to a print house, that prints and mails the statement. Currently, each page in

Re: [iText-questions] how would you do.....

2010-09-29 Thread Jason Berk
of information with a print job. Make sure your printer supports it - if not, find one that does - and then just generate it along with your PDF. -Original Message- From: Jason Berk [mailto:jb...@purdueefcu.com] Sent: Wednesday, September 29, 2010 2:13 PM To: Post all your questions about iText here

Re: [iText-questions] how would you do.....

2010-09-29 Thread Jason Berk
I found this thread: http://www.opensubscriber.com/message/itext-questions@lists.sourceforge.net/4608002.html and this example: http://itextpdf.com/examples/iia.php?id=270 but this code throws a Unbalanced begin/end marked content operators. public MarkedContentTest() { try {

Re: [iText-questions] how would you do.....

2010-09-29 Thread Jason Berk
- you can put custom keys on any page that you wish to find them later. Just be sure to use Second Class naming (prefix_Keyname) and register the prefix with the ISO. Leonard -Original Message- From: Jason Berk [mailto:jb...@purdueefcu.com] Sent: Wednesday, September 29, 2010 3:31 PM

Re: [iText-questions] get font color from phrase

2010-09-15 Thread Jason Berk
] get font color from phrase On 14/09/2010 22:14, Jason Berk wrote: How do I get the color of a font used to create a phrase? I can't think of any reason why you'd need to do that. The code snippet you provide is... very awkward. I don't see how that would ever work. // in the statement

[iText-questions] get font color from phrase

2010-09-14 Thread Jason Berk
How do I get the color of a font used to create a phrase? // in the statement decorator Phrase footer = new Phrase(String.format(FOOTER, phone, email), Fonts.RED); statement.addPhrase(footer, 130, 275f); // in the statement class public void addPhrase(Phrase phrase, float x, float y) {

Re: [iText-questions] get font color from phrase

2010-09-14 Thread Jason Berk
= null; -Original Message- From: Jason Berk [mailto:jb...@purdueefcu.com] Sent: Tuesday, September 14, 2010 1:14 PM To: Post all your questions about iText here Subject: [iText-questions] get font color from phrase How do I get the color of a font used to create a phrase

Re: [iText-questions] table event on a single row

2010-08-27 Thread Jason Berk
on. I'll post my code when I get to the office. Jason -Original Message- From: 1T3XT info [mailto:i...@1t3xt.info] Sent: Fri 8/27/2010 2:14 AM To: Jason Berk; Post all your questions about iText here Subject: Re: table event on a single row On 26/08/2010 20:46, Jason Berk wrote: How would

[iText-questions] PdfPTableEvent on a single row

2010-08-26 Thread Jason Berk
I need to change the background of a single row in a table. Can this be done in a Table Event? Do I have to loop over each row and only add the background to the row I care about? Jason ***This is a transmission from Purdue Employees Federal Credit Union (PEFCU) and is intended solely for

Re: [iText-questions] adding borders bloats file size?

2010-07-09 Thread Jason Berk
: Friday, July 09, 2010 2:14 AM To: Post all your questions about iText here Subject: Re: [iText-questions] adding borders bloats file size? Jason Berk wrote: Is it normal for cell borders to bloat the size of the file this significantly? Nice report! I like what you've done

Re: [iText-questions] pdfptable header rows

2010-07-08 Thread Jason Berk
:23 AM To: Post all your questions about iText here Subject: Re: [iText-questions] pdfptable header rows Jason Berk wrote: I need to produce a table that could span multiple pages and will always be the first thing added to a new page in a document. There are two header rows. The first header

Re: [iText-questions] pdfptable header rows

2010-07-08 Thread Jason Berk
I'm still unsure about how to make this happen. At a high level, am I changing the content of the ColumnText cell, or am I creating a new ColumnText and writing over the top of what's already in the cell, at an absolute position? Jason -Original Message- From: Jason Berk [mailto:jb

[iText-questions] pdfptable header rows

2010-07-07 Thread Jason Berk
I need to produce a table that could span multiple pages and will always be the first thing added to a new page in a document. There are two header rows. The first header is a description that spans all table columns. The second header is actual column headers (one per column). When the table

Re: [iText-questions] pdfptable header rows

2010-07-07 Thread Jason Berk
I need to produce a table that could span multiple pages and will always be the first thing added to a new page in a document. There are two header rows. The first header is a description that spans all table columns. The second header is actual column headers (one per column). When the table

Re: [iText-questions] Calculate Vertical space left on page afteradding text

2010-05-24 Thread Jason Berk
http://api.itextpdf.com/com/itextpdf/text/pdf/PdfWriter.html#getVerticalPosition(boolean) Read the table chapter. I believe there's a way to tell tables to truncate at the end of the page. You can also add one row at a time and then compare remaining vertical space with the vertical

Re: [iText-questions] iText 5.0.1 embedded fonts and smartcopy

2010-04-25 Thread Jason Berk
and 256 entries for the full embed. Paulo - Original Message - From: Jason Berk To: Post all your questions about iText here Sent: Saturday, April 24, 2010 4:31 PM Subject: Re: [iText-questions] iText 5.0.1 embedded fonts and smartcopy anybody know why this happens? Seems

Re: [iText-questions] iText 5.0.1 embedded fonts and smartcopy

2010-04-25 Thread Jason Berk
) only 3 show up. Paulo - Original Message - From: Jason Berk To: Post all your questions about iText here Sent: Sunday, April 25, 2010 4:04 PM Subject: Re: [iText-questions] iText 5.0.1 embedded fonts and smartcopy if that's the case, then why does the doc say the same font

Re: [iText-questions] iText 5.0.1 embedded fonts and smartcopy

2010-04-24 Thread Jason Berk
(~30,000) PDFs. Jason -Original Message- From: Jason Berk [mailto:jb...@purdueefcu.com] Sent: Fri 4/23/2010 5:14 PM To: Post all your questions about iText here Subject: [iText-questions] iText 5.0.1 embedded fonts and smartcopy I have three fonts which each contain 1 glyph. I created

[iText-questions] bad examples iText in Action 2nd Edition

2010-04-23 Thread Jason Berk
FYI: Listing 2.3: DirectorPhrases1.java public static final Font BOLD_UNDERLINED = new Font(Font.TIMES_ROMAN, 12, Font.BOLD | Font.UNDERLINE); ...does not compile Jason ***This is a transmission from Purdue Employees Federal Credit Union (PEFCU) and is intended solely for its authorized

[iText-questions] PdfAnnotationsImp.hasUnusedAnnotations

2010-04-09 Thread Jason Berk
What does this mean: com.itextpdf.text.pdf.internal.PdfAnnotationsImp.hasUnusedAnnotations ***This is a transmission from Purdue Employees Federal Credit Union (PEFCU) and is intended solely for its authorized recipient(s), and may contain information that is confidential and or legally

[iText-questions] force full font embedding

2010-04-08 Thread Jason Berk
I noticed when I embed a font and use a subset, only that subset is embedded. Is there anyway to force embedding of the entire font? I'm concat'ing pdfs with PdfSmartCopy and I want my font referenced, which doesn't happen with smart copy. I'm willing to increase the individual files slightly

[iText-questions] Image manipulation

2010-03-30 Thread Jason Berk
If I have an instance of com.itextpdf.text.Image, how do I get the actual bytes of the image? I need to take an Image instance, and resize it dynamically (which I assume I need to do via java graphics, not iText). Then I need to take that resized image and convert it back to a

Re: [iText-questions] design pattern

2010-03-22 Thread Jason Berk
of them (see the archives of the mailing list for discussions on this in the past). Leonard From: Jason Berk [mailto:jb...@purdueefcu.com] Sent: Sunday, March 21, 2010 5:06 PM To: Post all your questions about iText here; Post all your questions about iText here Subject: Re: [iText-questions

  1   2   >