nt. If you go through
> ColumnText.goComposite(), you might be able to find a way to trick it
> into calling writeSelected rows for each row, thus giving you what
> you're after.
>
> Good hunting.
>
> --Mark Storer
> Senior Software Engineer
> Cardiff.com
>
&
Hey,
I've got another unusual question... I've been asked to extract content
from a PdfPTable when it's being written. The problem with that is that the
objects representing the original data have been garbage collected. So the
only objects left to retrieve the data that is being written is th
Right.. I have "a" solution although I'm unsure wheather it's good enough,
perhaps you do know :-)
Image image = Image.getInstance(url);
if(image.isJpeg()){
if (image.hasICCProfile()) {
PdfICCBased icc =
I suspect you have a RGB image with a CMYK color profile, the profile must
> match the bytes in the image otherwise you'll have the "insufficient data"
> error. Have a look at
> http://thread.gmane.org/gmane.comp.java.lib.itext.general/52049/.
>
> Paulo
> -
Hey,
I seem to have stumbled upon this peculiar problem and eventhough this might
easy be a java.awt problem, I am using iText to add pictures and I notice
this to be a blocking problem in my project.
An image gets placed on a pdfptable using a PdfPCellEvent subclass. The
image has to have res
Right, sorry..
I changed document.add(main); to
main.writeSelectedRows(0,main.getRows().size(),0f,main.getTotalHeight(),canvas);
cheers ;-)
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/PdfPTable-padding-and-spacing-tp2248510p2250062.html
Sent from the iText - G
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
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
> 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
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.
-
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
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
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
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
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.
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
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(
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
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
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
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
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
I found that disabling the line:
" cell.setPaddingTop(-3); " resolves the issue, but then the padding at the
top is too high for me.
Moreover...
I wanted to do the counting of the cellheight to an actual Element being
used directly in the main table, so initially I added the PdfPCells to a sub
I realize it must be difficult to reproduce. So I made a JUnit test at home
which demonstrates the problem (if it is a problem but I assume so)
Please note the line: par2.setSpacingAfter(-1.2f);
If one adjusts this to setSpacingAfter(0f); then the tablesize is cut
correctly. Now it is spanned o
Hey,
I seem to be having another issue using PdfPTables. As always I might just
be doing something wrong, we'll see.
I'm building a list with PdfPCells which are added to a table as long as the
table has enough space. The max space of the table is the max size of the
whole document. So basica
addition:
I need to calculate the length because if the ladder is too small it needs
to be cut off at a certain height. And on the other hand, if it is too
large I need to make a 2nd pdf which will include the image (header and
footer), the textheader and the last subheader and then the remainin
Yep, that's true sorry 'bout that.
The first method adds PdfPTables (with cells) to a list, the 2nd is a
convenience method to create the main and dummy table.
The last adds the common params to the PdfPCells.
All I know is when I stopped using tables as element in a table that my
problem went
At any rate...
I was using the embedded tables to be able to calculate the height of a
cell. Now I created dummy PdfPTables with the same width as the main table,
add the cell, get the totalsize from the dummy table and discard it. Now
the border problem is also gone.
I would however still l
Hey,
I can't seem to get rid of borders when I use a PdfPTable in a PdfPTable.
All cells are set to have no border (cell.setBorder(0)) and this works if I
add the cell to a table. But when I add that table to another table it
suddenly has, even if all of the tables have their defaultcell set to
I added the itext repo and the dependency, yet I get this:
Unable to get resource 'com.itextpdf:itextpdf:jar:5.0.2' from repository
itextpdf.com (http://maven.itextpdf.com): Error retrieving checksum file for
com/itextpdf/itextpdf/5.0.2/itextpdf-5.0.2.jar
I was thinking about getting 2.1.7
--
Some new issues have come to light. I strongly feel the need to post this.
I was searching for a way to check Revocation lists programatically, with
changing success. Eventually my eye fell on OCSP, as the Belgian Government
provides an OCSP Server, so all I needed to do was write a client.
Th
key);
this.voornamen = subjectList.get(0);
break;
}
default: break;
}
}
}
Fhomasp wrote:
>
> Hey all..
>
> So I've been able to place an eID signature on a PDF document. But no
> matter w
Hey all..
So I've been able to place an eID signature on a PDF document. But no
matter which certificate I try I cannot seem to validate the signature
programatically. Something in the code must be off because using the GoDot
test script that comes with its source code the self-signed signature
Hey,
I've been programmatically signing PDF documents, which is working ok as of
today. So I attempted to get the signing info from a document and verifying
it following Chapter 16 page 530 in the iText book.
I used a .be eID sample card from Certipost. The signing example in the
book works wel
onary();
dic.put(PdfName.CONTENTS,new
PdfString(sig.getEncodedPKCS1()).setHexWriting(true));
sap.close(dic);
Fhomasp wrote:
>
> Once again I was too hasty.
>
> I made a typo in the one of the last lines...
> PdfName.CONTENT should be PdfName.CONTENTS.
Once again I was too hasty.
I made a typo in the one of the last lines...
PdfName.CONTENT should be PdfName.CONTENTS. That's code completion for you
:)
Cheers,
Thomas
Fhomasp wrote:
>
> Hey,
>
> Using a sample eID card from Certipost I'm attempting to sign PDF
>
Hey,
Using a sample eID card from Certipost I'm attempting to sign PDF documents.
I'm using the example from the book. However I keep getting this exception,
no matter what kind of document I'm using.
java.lang.IllegalArgumentException: The key /Content didn't reserve space in
preClose().
For HTML to PDF conversion you should take a look at the flying saucer
project.
https://xhtmlrenderer.dev.java.net/
It uses iText as main framework for this kind of thing. It works best with
xhtml though.
Howard Shank wrote:
>
> What version of iText are you using?
>
> Howard Shank
>
>
>
rs him ;-)
wasegraves wrote:
>
> -- Original message ------
> From: Fhomasp <[EMAIL PROTECTED]>
>>
>>
>> When calling the method using an extra "" in the vararg works. Although
>> it
>> does seem more like a worka
he user is limited to the choices I provide.
But I guess it'll have to do. Thanks m8.
I'll see about that donation ;-)
wasegraves wrote:
>
> -- Original message ------
> From: Fhomasp <[EMAIL PROTECTED]>
>>
>>
>> What do y
the PDF viewer/printer to render the
combo box for you, expecting >the iText has some magical powers over
viewers/printers.
I really don't understand.. I'm not expecting anything out of the ordinary
really.
wasegraves wrote:
>
> -- Original message --
Hey,
My document is getting in the final stages and I'm pretty happy with the
result. Lots of code though for a 5 paged document.
But now that I am testing the document I encountered a problem when printing
the document, more specifially with comboboxes.
When I open the generated document ever
I found what happened.
I define a new Table which exists with 2 columns. If I never add something
to the 2nd column, the first will never get drawn. Maybe an exception could
be thrown there in the future? Or maybe not, what do I know ^^ ;)
Fhomasp wrote:
>
> I'm pretty sure t
uot;
never gets called.
Normally it gets called when it is added to the document, right? Or at
least that's what happens when I debug while I added the supposed nested
table directly to the document.
1T3XT info wrote:
>
> Fhomasp wrote:
>> I'm not really seeing what I
Hey again.
I have been trying to get a nested table to show in a document. The idea is
for having multiple checkboxes in the nested table.
The idea is for a header to be set on the nested table with a bunch of
checkboxes, each below the other.
I'm not really seeing what I'm doing wrong. If I
the field.
Thanks already :)
Bruno Lowagie (iText) wrote:
>
> Fhomasp wrote:
>> Because the TextFields are wrapped in a PdfPCell the font set in the
>> TextField doesn't get through. The font is adjusted by the height of the
>> cell. For regular fields this is
Hey,
I need my PDF document to contain several tables.
The purpose of the table is for the client to write text in the TextFields
and for us to gather the written text in the TextField.
All is going rather well except for the following problems. I'll include an
image as reference as well as the
Hey,
I learned a few things, one of them being to first check this thread again
before giving it all another go :)
I noticed that I broke the form by defaultishly opening and filling the
document. Something I would have read if I had checked this thread again.
My mailbox didn't get updated on n
Right, thanks for clearing that up.
So after creating the AcroForm template, which I can do programatically or
by any other means, it doesn't really matter. Perhaps creating it
programatically is the best solution because I can name the fields myself
and be able to recognize them better.
I do h
Thank you all for the quick responses.
I'll clarify the situation.
Somehow I need to figure out a solution for the following situation.
A User who requires assistance needs to fill in a form but is unsure of all
of the required information.
For this matter there is an online form which will a
Hey,
I built a DocumentBuilder which builds Pdf Documents using iText. My idea
was to couple setter fields from a Bean receiving form data from a JSF page
to the documentbuilder class. This allows me to dynamically produce Pdf
files, however one of the requirements is for the user to fill in mi
51 matches
Mail list logo