Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread fhomasp
Fair enough, and I'll keep that in mind for next time :-) int value would not have been okay. I get the interval sizes in mm, which needs to be converted to points. And it has to be exact. Oh, Off topic. Watch "Oog in oog" tonight, I'll be there asking a question ^^ -- View this message in c

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread 1T3XT info
fhomasp wrote: > That seems to have done the trick indeed. It's actually all I needed. Another way could have been to round the page size to an integer value. Because it's odd to have a page size defined in ten thousands of a point... > Here's an example of my output.. Perhaps it'll be more cle

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread fhomasp
That seems to have done the trick indeed. It's actually all I needed. Here's an example of my output.. Perhaps it'll be more clear as to why I chose to use PfdPTables. http://rapidshare.com/files/397335667/out.rar.html Thanks! -- View this message in context: http://itext-general.2136553.n

[iText-questions] pdf merge spacing issue

2010-06-09 Thread rathana
Hi All, Any help is greatly appreciated. I am trying to use itext using the code sample presented in http://viralpatel.net/blogs/2009/06/itext-tutorial-merge-split-pdf-files-using-itext-jar.html. It does merge the files. Only problem is, there is extra space at the top of every page(in the mer

Re: [iText-questions] Extra margin after print

2010-06-09 Thread 1T3XT info
Lu, Tao (MOH) wrote: > Hi, experts, > > I produced a PDF document by iText, the soft version looks very fine > with correct margins. But when I printed it out, there are extra margins > which are added to the original margins. > > How can I get rid of the extra margins? Instruct the document t

Re: [iText-questions] pdf merge spacing issue

2010-06-09 Thread 1T3XT info
rathana wrote: > Hi All, > > Any help is greatly appreciated. > > I am trying to use itext using the code sample presented in > http://viralpatel.net/blogs/2009/06/itext-tutorial-merge-split-pdf-files-using- > itext-jar.html. That's not an official example. > It does merge the files. Only

Re: [iText-questions] Adding a PdfImportedPage into a xobject PdfDictionary - is this a good thing to do?

2010-06-09 Thread 1T3XT info
Felipe Roos da Rosa wrote: > 1T3XT info wrote: >> A Form XObject also has a Resources >> dictionary referring to Font objects, other XObjects, etc... >> >> That makes it very difficult to achieve what you need. > > So, I suppose that's what addTemplate from PdfContentByte does, right? No, addTem

Re: [iText-questions] Usage rights and push buttons

2010-06-09 Thread Leonard Rosenthol
Using the JavaScript commands in the PDF, yes. Using iText, no. -Original Message- From: EMP [mailto:jthom...@emplicity.com] Sent: Wednesday, June 09, 2010 7:33 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Usage rights and push buttons I've spent the past few

Re: [iText-questions] Spam: Getting font information for form fields

2010-06-09 Thread Thomas Hauk
On Jun 9, 2010, at 4:51 PM, Mark Storer wrote: > I just banged that out in this email here... you'll want to check > things > against null hither and yon in Real Code... heck it might not even > compile. Almost spot-on. Here's what I ended up with: private String getFieldFont(AcroFields acroFi

Re: [iText-questions] Spam: Getting font information for form fields

2010-06-09 Thread Mark Storer
That's a bit harder. You need to get the Default Appearance string, "DA", from the AcroFields.Item for the field. From there, you parse out the /Tf (text font, or something to that effect) command to discover the font resource name. Fortunately most font resource names are standardized for commo

[iText-questions] Usage rights and push buttons

2010-06-09 Thread EMP
I've spent the past few days searching the internet for an answer. Is there a way to change the icon of a pushbutton in a Rights Enabled form without breaking the Rights? I know how to fill in the fields properly, but I can't figure out the pushbuttons. -- View this message in context: http:/

[iText-questions] Getting font information for form fields

2010-06-09 Thread Thomas Hauk
I can get an AcroFields object from a PdfStamper, and from that I can not only get the name of each field, but its dimensions, as well. How can I also get the font specified for each form field? -- Thomas Hauk Shaggy Frog Software www.shaggyfrog.com --

Re: [iText-questions] Spam: Error when using createGraphics

2010-06-09 Thread EMP
That was the problem, thanks. -- View this message in context: http://itext-general.2136553.n4.nabble.com/Error-when-using-createGraphics-tp2249138p2249682.html Sent from the iText - General mailing list archive at Nabble.com.

Re: [iText-questions] Placing text in a PdfTemplate

2010-06-09 Thread Thomas Hauk
On Jun 9, 2010, at 2:12 PM, Mark Storer wrote: > PdfTemplate doesn't support annotations like that. It's package > private > because there are things that /can/ work, but You Have To Know What > You > Are Doing. > > I believe ColumnText will help. IIRC, it can draw directly to a > PdfContentB

Re: [iText-questions] Placing text in a PdfTemplate

2010-06-09 Thread Mark Storer
PdfTemplate doesn't support annotations like that. It's package private because there are things that /can/ work, but You Have To Know What You Are Doing. I believe ColumnText will help. IIRC, it can draw directly to a PdfContentByte/template/thingy. Yep. That'll do the trick. http://api.itex

Re: [iText-questions] Adobe Reader signature validation behavior

2010-06-09 Thread Leonard Rosenthol
Verisign is an excellent vendor - just make sure you tell them what it is you actually need. That you need a certificate for use in signing documents (PDFs) that is chained to the Verisign root that is included in Reader. Leonard -Original Message- From: msinatl [mailto:msilverbo...@cf

[iText-questions] Placing text in a PdfTemplate

2010-06-09 Thread Thomas Hauk
I am currently generating a PDF by adding a PdfTemplate object multiple times to a document (in an 8-up fashion). I wanted to dynamically place text in my PdfTemplate, which I did so with the following code (in the function that creates my PdfTemplate object): pdfTemplate.beginText

[iText-questions] Extra margin after print

2010-06-09 Thread Lu, Tao (MOH)
Hi, experts, I produced a PDF document by iText, the soft version looks very fine with correct margins. But when I printed it out, there are extra margins which are added to the original margins. How can I get rid of the extra margins? Many thanks! Tao

Re: [iText-questions] Adobe Reader signature validation behavior

2010-06-09 Thread msinatl
Thank you, Leonard. We didn't feel like our sales rep was very educated on his own products, and you have confirmed it. Are there any certificate vendors or products that you've used with success? I'd prefer to buy from someone who understands what we need! -- View this message in context: ht

Re: [iText-questions] Adobe Reader signature validation behavior

2010-06-09 Thread Leonard Rosenthol
That certificate isn't valid for signing content - only for signing transactions. If you look at the key usage field of the certificate, this is clearly identified as such. Looks like you purchased the wrong type of certificate from Verisign. Leonard -Original Message- From: msinatl [

Re: [iText-questions] Adobe Reader signature validation behavior

2010-06-09 Thread msinatl
http://itext-general.2136553.n4.nabble.com/file/n2249347/HIPAA_Release.pdf HIPAA_Release.pdf An example is attached. I'm using Adobe Acrobat Pro 9.3.2 on Windows 7 64-bit. Similar behavior observer with Adobe Acrobat Pro 7.0 and Adobe Reader 9.3.2 on Windows XP. I see that dynamic updates can

Re: [iText-questions] Adobe Reader signature validation behavior

2010-06-09 Thread Leonard Rosenthol
You don't mention anything about what version(s) of Adobe Reader on what OS platform(s). Built-in trust lists differ between OS and version. Also, newer versions support dynamic updating of that list. You should probably also provide a sample PDF that demonstrates the problem. Leonard -O

[iText-questions] pdf merge spacing issue

2010-06-09 Thread rathana
Hi All, Any help is greatly appreciated. I am trying to use itext using the code sample presented in http://viralpatel.net/blogs/2009/06/itext-tutorial-merge-split-pdf-files-using- itext-jar.html. It does merge the files. Only problem is, there is extra space at the top of every page(in th

Re: [iText-questions] pdf with cmyk jpeg image problem

2010-06-09 Thread Leonard Rosenthol
Historical dispute between various engineers/architects. Would really require a bunch of beers to explain ;) (and also an understanding of image process and colour theory). Leonard -Original Message- From: Felipe Roos da Rosa [mailto:feliper...@yahoo.com] Sent: Wednesday, June 09, 20

Re: [iText-questions] pdf with cmyk jpeg image problem

2010-06-09 Thread Leonard Rosenthol
I am sure it's something going on in your code and/or iText - but neither are things that I am able to look at... Hopefully, one of the iText guys (Bruno, Paulo, etc.) can comment. Leonard From: Danila Galimov [mailto:danila.gali...@exigenservices.com] Sent: Wednesday, June 09, 2010 12:27 PM To

Re: [iText-questions] Spam: Error when using createGraphics

2010-06-09 Thread Mark Storer
You need to clean up the graphics2d object: graphics.dispose(); --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; Disclaimer DisCard = null; > -Original Message- > From: EMP [mailto:jthom...@emplicity.com] > Sent: Wednesday, June 09, 2010 9:42 AM > T

[iText-questions] Error when using createGraphics

2010-06-09 Thread EMP
I was writing code to put an SVG image into a pdf and I kept getting an error message: "Unbalanced save/restore state operators.". I put together a short block of code to reproduce the error. try{ PdfReader pReader = new PdfReader("e:\\Tomcat\\webapps\\pdf\\in\\12345.pdf"); PdfSt

Re: [iText-questions] pdf with cmyk jpeg image problem

2010-06-09 Thread Felipe Roos da Rosa
Leonard Rosenthol wrote: > I will also note that CMYK-based JPEGs have to special cased in PDF – they > can’t be simply copied over as other RGB JPEGs can. Why is that? How should one handle this case? Regards, Felipe Roos -

Re: [iText-questions] Adding a PdfImportedPage into a xobject PdfDictionary - is this a good thing to do?

2010-06-09 Thread Felipe Roos da Rosa
1T3XT info wrote: >A Form XObject also has a Resources >dictionary referring to Font objects, other XObjects, etc... > >That makes it very difficult to achieve what you need. So, I suppose that's what addTemplate from PdfContentByte does, right? Based on some samples, I was using that to place

Re: [iText-questions] pdf with cmyk jpeg image problem

2010-06-09 Thread Danila Galimov
Hello Leonard, Thank you very much for your reply! Have you got any sample or link how to do that you've mentioned? Just wondering: why does tiff with the same ICC profile work and jpeg does not? Maybe I can load the jpeg programmatically, and then convert it internally to tiff or raw and copy

Re: [iText-questions] pdf with cmyk jpeg image problem

2010-06-09 Thread Leonard Rosenthol
I haven't looked at ANY of the sample files, but I will make one comment. Embedded profiles inside of image data are _NOT_ recognized by the PDF format and thus by conforming readers. If you wish to tag the images with the profile (which is a good thing!), then you need to be sure that you are

Re: [iText-questions] Add timestamp to signed PDF

2010-06-09 Thread 1T3XT info
Daniel Perez Alvarez wrote: > So, if the signatures are PKCS#1, does the situation change? No, timestamping has to be done at the moment you're signing. > PD: If PAdES-LTV is the way to go, Yes, but that's not even implemented in Adobe Reader, and it will only be in the PDF specification somewhe

Re: [iText-questions] Add timestamp to signed PDF

2010-06-09 Thread Daniel Perez Alvarez
I've found the following about the signature in the signed PDFs I have to timestamp: * The '/Filter' entry contains 'Adobe.PPKLite' * The '/SubFilter' entry contains 'adbe.x509.rsa_sha1' * The X509 certificate is stored in the '/Cert' entry * The '/Contents' entry doesn't seem to be padded, so t

[iText-questions] pdf with cmyk jpeg image problem

2010-06-09 Thread Danila Galimov
Hello all, I've got 2 images: original tiff with CMYK Icc profile attached (http://bgrh.spb.ru/www/pdfError/House.tiff ), and converted jpeg with same CMYK profile attached (http://bgrh.spb.ru/www/pdfError/House.jpg). Profiles are extracted using PhotoMe freeware program (http://www.photome.de

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread 1T3XT info
fhomasp wrote: > After processing, every document has the following properties of importance. > > Document: pagesize.ury --> 1082.8346 > pagesize.urx --> 243.77954 > > Table: totalheight: 1082.8345 > toalwidth: 243.77954 You're experiencing rounding errors caused b

Re: [iText-questions] Mailing Labels & Table Place Cards

2010-06-09 Thread 1T3XT info
William K. Goodbody wrote: > I saw the reference to set rotation on page 109 of the book, but there > doesn't seem to be such a property on the cell. "We can rotate the content of a cell with the setRotation() method." That method is in the API; see: http://api.itextpdf.com/com/itextpdf/text/pdf/P

[iText-questions] Adobe Reader signature validation behavior

2010-06-09 Thread msinatl
Hi, Although this is not an iText issue per se, I am hoping that members of the iText community may have some experience to share on the subject. I have a Verisign code-signing certificate that I am using (with iText) to sign documents in a web application. The particular certificate authority

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread fhomasp
> I've done a similar assignment for "De Persgroep". > It took me less than 2 days ;-) > The code is used in several magazines and in HLN. Linkedin rules? :-) I've been here at this project for one week and a half. The code I have now was finished in one week, except for this problem I'm havin

[iText-questions] Mailing Labels & Table Place Cards

2010-06-09 Thread William K. Goodbody
We want to create both of these. They are both similar in that they are a repeating fixed size "Cell" on a page in column (e.g 2 wide, 8 down) The table Place cards require that each cell be "split in half" with 1/2 the text rotated 180 degrees from the other so when folded in 1/2 the text is rig

Re: [iText-questions] Flattening annotations (stamps) using iText

2010-06-09 Thread 1T3XT info
rking wrote: > You can just lock the annotation? Does this still allow the rest of the pdf > to be manipulated (pages to be added/removed/combined)? Can you point me to > somewhere with general information on how to lock the annotation? See table 165 in ISO 32000-1 (bit position 8). In iText, you

Re: [iText-questions] Flattening annotations (stamps) using iText

2010-06-09 Thread rking
You can just lock the annotation? Does this still allow the rest of the pdf to be manipulated (pages to be added/removed/combined)? Can you point me to somewhere with general information on how to lock the annotation? Thanks! -- View this message in context: http://itext-general.2136553.n4.nabb

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread 1T3XT info
fhomasp wrote: > The document needs to be printed in a newspaper. I've done a similar assignment for "De Persgroep". It took me less than 2 days ;-) The code is used in several magazines and in HLN. > The maximum is the largest > size of the page of the newspaper. The other intervals are the le

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread fhomasp
And of course I mean TableInstance.getTotalHeight(); -- View this message in context: http://itext-general.2136553.n4.nabble.com/PdfPTable-padding-and-spacing-tp2248510p2248902.html Sent from the iText - General mailing list archive at Nabble.com. -

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread fhomasp
As addition... Everything works except for the occasional glitch of the size of the table. Somehow when the document is being made the table appears to be larger than it said itself (table.getTotalSize). But that's one my assumptions, I learned not to go too much on those. My problem seems to

[iText-questions] [SPAM] Re: AES-256 encryption

2010-06-09 Thread kmarx
We would be able to pay something and/or contribute development and testing. Can you give a ballpark estimate for cost and time? "Paulo Soares-3 [via iText - General]" wrote: There's no development on that front at the moment. The request for this was one, two with you, so it's not really a

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread fhomasp
The document needs to be printed in a newspaper. The maximum is the largest size of the page of the newspaper. The other intervals are the lengths given to me where the document can be cut. So if I have a resulting table of 5cm and the interval is 80mm I need to fill the rest up with whitespace

Re: [iText-questions] User and owner password

2010-06-09 Thread 1T3XT info
TvT wrote: > Lets say i am opening the PdfReader with a password but i don't know > whether its the user or the owner password (because e.g. the user > typed it in) Is there a way to find that out? You can do this with the method isOpenedWithFullPermissions() If the document is encrypted, it retur

Re: [iText-questions] Reg: Wrap text in a rectangle

2010-06-09 Thread 1T3XT info
Karthika Rachna R wrote: > I have a rectangle inside which I need to add a text. I need to wrap the > text within the rectangle. > Please tell me how this can be handled. Please read chapter 3 of the second edition of "iText in Action". There's also a more advanced example in chapter 8 (the one

Re: [iText-questions] Fields in concatenated pdf appear to be missing but hidden under canvas.

2010-06-09 Thread 1T3XT info
Bevan Killian wrote: > Based on this I have now had to expand it where I may need to > concatenate these templates into one pdf and then populate it with > data. If you want to concatenate XFA forms (as opposed to AcroForms) then you can stop reading here: you need Adobe software to do that. > I

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread 1T3XT info
fhomasp wrote: > The output document needs to be of a fixed height interval, depending on how > much rows there are. So let's say the fixed interval is an inch, then the height of the document needs to be a multiple of 72pt. > I cannot just output on extra pages anytime i want. You need a sing

Re: [iText-questions] Need help to generate PDF by using URL content

2010-06-09 Thread Wain, Matthew
Hi :) What do you mean by generate? You need to write some back end code to construct the PDF as such and pass it up as a byte array to the web browser to serve to the user, or are you just talking about how to get the byte array downloadable? -Original Message- From: kishore [mailto:k

[iText-questions] Reg: Wrap text in a rectangle

2010-06-09 Thread Karthika Rachna R
Hi All, I have a rectangle inside which I need to add a text. I need to wrap the text within the rectangle. Please tell me how this can be handled. Regards, Karthika -- ThinkGeek and WIRED's GeekDad team up for the Ulti

[iText-questions] Need help to generate PDF by using URL content

2010-06-09 Thread kishore
Hi, I have a requirement in my project. Need to generate PDF by using some external URL content for ex: (http://www.google.com). I am using struts2. Please let me know how to generate PDF. Thanks Kishore CH -- ThinkGe

[iText-questions] PDF generation of URL content

2010-06-09 Thread kishore
Hi, I have a requirement in my project. I will get an URL from DB for ex: (http://www.google.co.in/) and whatever content is there in that page, need to generate PDF. Can you please let me know how to generate PDF? I am using struts2. Thanks & Regards Kishore CH ---

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread fhomasp
Excuse me but I did the effort of building a JUnit test to show the problem. If you had simply attempted to run it, which takes about 5 secs you would easily have seen what I meant, no offense. But I'll explain in detail. The output document needs to be of a fixed height interval, depending on

[iText-questions] Fields in concatenated pdf appear to be missing but hidden under canvas.

2010-06-09 Thread Bevan Killian
Hi, am quite new to iText and Java environment and would like some assistant on some issues I am having. I have been running iText against a PDF templates(static pdf's with fields inside) that has acrofields in it and it works well. I tried dynamic pdf's but our fax server(rightfax) which sends ou

[iText-questions] User and owner password

2010-06-09 Thread TvT
Hi, i have two questions regarding the different password types. 1.) Lets say i am opening the PdfReader with a password but i don't know whether its the user or the owner password (because e.g. the user typed it in) Is there a way to find that out? (Since i can open a document with user or owner

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread Wain, Matthew
Also, a temporary workaround could be amending your height line to add 1 point: Document document = new Document(new Rectangle(350f, main.getTotalHeight()+1f)); Not got much time to be honest, so might have to leave it... Matthew -Original Message- From: fhomasp [mailto:thomas.peet...@r

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread 1T3XT info
fhomasp wrote: > But still. A tables size is its size, right? You were talking about padding, not about table size. > ascending or descending, > should it really matter when cutting the document to the size of the table? > Really, forgive me for being ignorant but all I can do is ask. Messages

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread Wain, Matthew
Ok, so here's a standalone program and the PDF I guess you were originally getting? Looks like there is a big border on the left... but before I play, is this how your's looks? package whatever.you.test; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStrea

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread fhomasp
This is my new cell config: private void applyDefaultCellProps(PdfPCell cell){ cell.setBorder(PdfPCell.NO_BORDER); cell.enableBorderSide(Rectangle.LEFT); cell.enableBorderSide(Rectangle.RIGHT); cell.setPadding(5); cell.setPaddingTop(0); cell.setPad

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread Wain, Matthew
Yup, I have just been playing around with .setUseAscender .setUseDescender, as I didn't realise it existed. I learnt something today as well. Subtle differences in the way they work though, be careful. Matthew -Original Message- From: fhomasp [mailto:thomas.peet...@realdolmen.com] Sent

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread fhomasp
Sorry... I must have missed the ascender descender thing. I'll give that a shot now. But still. A tables size is its size, right? ascending or descending, should it really matter when cutting the document to the size of the table? Really, forgive me for being ignorant but all I can do is ask.

Re: [iText-questions] ICC Profile With CMYK Option

2010-06-09 Thread Leonard Rosenthol
You want to create a PDF/A document with a CMYK profile? What type of document is it? You should be using the CMYK profile that matches the intended Output device - be it SWOP, ISO Coated, ECI, etc. Leonard -Original Message- From: viswanath [mailto:viswanath.vankad...@greypad.com

Re: [iText-questions] Flattening annotations (stamps) using iText

2010-06-09 Thread Leonard Rosenthol
You could also just the 'locked' attribute on the annotation to keep it from moving/deleted as well. -Original Message- From: rking [mailto:r...@rocketmail.com] Sent: Tuesday, June 08, 2010 10:16 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Flattening annotatio

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread 1T3XT info
fhomasp wrote: > It's ok in 80% of the documents, but there are still documents cut badly. Because of the ascender/descender? -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- Thin

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread fhomasp
For clarification, here's the whole testcase again: As you can see I'm not using negative values anymore for the padding, just the textspacing. The document is still cut wrongly. @Test public void testSizeBug() throws DocumentException, FileNotFoundException { PdfPTable main = new P

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread fhomasp
Well.. It seems that the padding isn't really fixing all of the document cutting problems. These are my cell settings now: private void applyDefaultCellProps(PdfPCell cell){ cell.setBorder(PdfPCell.NO_BORDER); cell.enableBorderSide(Rectangle.LEFT); cell.enableBorderSide(

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread fhomasp
Yes well.. I was attempting to avoid having to know which cell is the first in a bunch. The ad documents contain several headers so there are several first cells. But ok, I'll go about it this way. I do still think the cutting of the document, even when using contradicting padding values and s

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread 1T3XT info
Wain, Matthew wrote: > BTW, not sure if the comment about a new thread everytime is to me You are registered as a subscriber to the list. Thomas isn't. Which is very annoying: his mail is always put on hold, and an administrator needs to manually approve it. (If all mail would be accepted, you'd a

Re: [iText-questions] AES-256 encryption

2010-06-09 Thread Paulo Soares
There's no development on that front at the moment. The request for this was one, two with you, so it's not really a priority. If it's a priority for your company and you are willing to pay for the development or contribute with the code then it could go ahead. Paulo -Original Message

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread Wain, Matthew
BTW, not sure if the comment about a new thread everytime is to me, but all I'm doing is clicking "reply", as I'm doing it via email Anyway... Sounds like kinda what you need to do is something like this: Set the first cell padding, so it's something like: cell.setPaddingLeft(5f); cell.setP

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread 1T3XT info
fhomasp wrote: > I need a bit of padding on the bottom of the cells. If I set for example: > > cell.setPadding(5); > cell.setPaddingTop(0); > cell.setPaddingBottom(4); > > Then the space between the cells is still too large. And I do need bottom > padding (sounds like fun) otherwise the text i

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread fhomasp
I need a bit of padding on the bottom of the cells. If I set for example: cell.setPadding(5); cell.setPaddingTop(0); cell.setPaddingBottom(4); Then the space between the cells is still too large. And I do need bottom padding (sounds like fun) otherwise the text in the cell is placed exactly o

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread Wain, Matthew
cell.setPadding(5); cell.setPaddingTop(-3); cell.setPaddingBottom(4); Looks a little like conflicting values to me... Not sure about your cutting problem without running an example myself, but why are you using minus values for the padding? Surely you would only want zer

Re: [iText-questions] Paragraph negative spacing weirdnessinPdfPTables

2010-06-09 Thread fhomasp
You're making a habit of answering every thread with a new thread? Not that i'm innocent, far from it but it's the 2nd time you've done this. Right so the use of the tables defaultcell seems to work, partly. There still is whitespace between the left and right borders. I need the whole table t

[iText-questions] PdfPTable padding and spacing

2010-06-09 Thread fhomasp
Hey, First of all, sorry for the double post but I do need the advice and I do realize that the initial thread got started off on the wrong foot. I made a unit test to show how I encounter the problem. Note that the whole document is cut of exactly at the end of the table, so the table should al

Re: [iText-questions] Paragraph negative spacing weirdnessinPdfPTables

2010-06-09 Thread Wain, Matthew
Well for PdfPCells it can be done like this (obviously only the setBorder bit): // Define Cells structure's for re-use PdfPCell aCell = new PdfPCell(); aCell.setHorizontalAlignment(Element.ALIGN_LEFT); aCell.setPaddingBottom(1f); aCell.setBorder(Rectangle.NO_BORDER); for

Re: [iText-questions] Paragraph negative spacing weirdness inPdfPTables

2010-06-09 Thread fhomasp
I think it's better to keep everything in one topic? http://itext-general.2136553.n4.nabble.com/Paragraph-negative-spacing-weirdness-in-PdfPTables-td2245863.html#a2245863 How would one remove borders from tables? One can only modify borders in cells using setBorder(int) -- View this message in

[iText-questions] ICC Profile With CMYK Option

2010-06-09 Thread viswanath
Hi, I have created a pdf which supports PDFA conformance with sRGB profile by following the link "http://stackoverflow.com/questions/2366851/can-itextsharp-convert-pdf-document-to-pdf-a"; which was suggested by "Paulo Soares" In the above link,sRGB profile is used. I want create a PDF with CMYK

Re: [iText-questions] Flattening annotations (stamps) using iText

2010-06-09 Thread 1T3XT info
rking wrote: > We are trying to find out a way to flatten stamps (so other users cannot move > the stamp) on a PDF without adding a password or formally securing the PDF. Stamps are annotations of which the appearance depends on the viewer. In other words: there's no "moveTo, lineTo, stroke,..." s

Re: [iText-questions] Extend nested table to bottom of contained cell

2010-06-09 Thread 1T3XT info
Marco Schindler wrote: > Ok, assuming there's no way to do this atm, would it be possible to > add support for specifying which boundary "extendLastRow" should use > (eg. page boundary, container/document boundary)? I didn't understand the original question. I don't understand the follow-up questi

Re: [iText-questions] Adding a PdfImportedPage into a xobject PdfDictionary - is this a good thing to do?

2010-06-09 Thread 1T3XT info
Felipe Roos da Rosa wrote: > Would it be possible? In the page dictionary of a page with images, you have something like this: /XObject<> Objects 3, 4, 5, and 6 are stream objects, containing the bits and bytes of the image. In chapter 16 of the second edition of "iText in Action", such an imag

Re: [iText-questions] ItextSharp PDF Version issue

2010-06-09 Thread Bency Thomas
Hi, Thanks a lot for this. I have closed the Response Stream and it is working with Adobe 7 as well. On Tue, Jun 1, 2010 at 3:37 PM, Paulo Soares wrote: > You'll have to close the output http stream after writing the pdf > otherwise there will be garbage, as an html page, after the pdf and

Re: [iText-questions] Paragraph negative spacing weirdness inPdfPTables

2010-06-09 Thread Wain, Matthew
Just got in, very tired, so sorry if I am answering this wrong... Take the borders off everything with the Rectangle.NoBorder (I think). (Everything = PdfPCells, The PdfPTable, and the nested PdfPTable(s)). Also, don't forget to get rid of the pad (if you want to) from the all the tables your