I... nope that won't work. I was going to suggest a Rectangle with no
borders or background, but they don't affect vertical positioning. So
much for that idea.
So we're left with things like empty lines ("" didn't work, but have you
tried " "?), images that match the background color, and so forth.
OR:
You could tweak the source, at which point you have Many Options:
1) add a the following to PdfDocument
Public void adjustVericalPosition( float adjustment ) {
currentHeight += adjustment;
}
You can get access to the PdfDocument... err... Ah.
PdfWriter.getDocument() is package private. You could write a toy class
in com.itextpdf.text.pdf to get it for you. The PdfDocument is also
passed into the various PdfPageEvent functions as the Document
parameter. You could register for one of them just to grab a handle to
the PdfDocument.
(and given that you're already modifying source, you could just make
getDocument() public. I did. ;)
2) Change the text drawing code so it doesn't ignore empty strings. I'm
not sure where that would be exactly.
3) The ideas start getting a little kludgy at this point... Image
inherits from Rectangle. Change PdfDocument.add(Image) so that it
respects border thickness. If you want the vast majority of image
insertion (not just yours in this one specific instance), I suggest you
make sure some non-default attribute has already been set.
"useVariableBorders" ought to do it, then set the bottom border
thickness, and compensate for it in add( Image )
--Mark Storer
Senior Software Engineer
Cardiff.com
#include <disclaimer>
typedef std::disclaimer<Cardiff> Discard;
> -----Original Message-----
> From: Neha Yadav [mailto:[email protected]]
> Sent: Monday, March 15, 2010 10:19 PM
> To: [email protected]
> Subject: Re: [iText-questions] space between 2 images
>
>
> Hello Bean,
> Yes i tried to add a horizontal blank line in the middle of the page
but
> it's not happening,could you please tell that how can a blank line be
> added
> at the just middle of the page?
>
> mister bean wrote:
> >
> > Did you try adding a blank line between the images? Add immage, add
> blank
> > line, add image, etc.
> >
> > Plenty of examples in the book. From your other posts, you seem very
> > concerned about measuring position, etc. If it's to solve this
problem,
> > you're doing it wrong. Add the content to ColumnText the way you
want it
> > to appear.
> >
> > There are many examples in the two books.
> >
> > ---mr. bean
> >
> >
> > Neha Yadav wrote:
> >>
> >> Hi,
> >> I have stamped 4 images using column text but there is no space
> between
> >> 2 images of one column. Would you please tell me that how can i get
> that
> >> space.
> >> Thanks
> >>
> >
> >
>
> --
> View this message in context: http://old.nabble.com/space-between-2-
> images-tp27874738p27913655.html
> Sent from the iText - General mailing list archive at Nabble.com.
>
>
>
------------------------------------------------------------------------
--
> ----
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> Check the site with examples before you ask questions:
> http://www.1t3xt.info/examples/
> You can also search the keywords list:
> http://1t3xt.info/tutorials/keywords/
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 9.0.733 / Virus Database: 271.1.1/2732 - Release Date:
03/16/10
> 00:33:00
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/