>Is there a way to use iText to set an imagefield in an acro form similar to
>what can be done with textfields?
Kinda. There's no such thing as an "image field" in an AcroForm. That being
said, you can set a button's appearance to "Icon Only", and draw whatever you
like for the 'icon'... in
On 07/09/06, Néstor Boscán <[EMAIL PROTECTED]> wrote:
> Thanks Paulo
>
> That made it clear.
You're certainly not alone in this - I feel I have to (re)explain this
to my boss every other week... and I learnt it all right here on the
iText list!
PDF is NOT a format designed for reworking - it is de
Is there a way
to use iText to set an imagefield in an acro form similar to what can be done
with textfields (like in this example: http://itextdocs.lowagie.com/examples/com/lowagie/examples/general/copystamp/Register.java)?
Thanks,
Cheryl
> Image jpeg = Jpeg.getInstance(pdfStamper.getImportedPage(pdfReader, 1));
There is no Jpeg.getInstance. While it compiles, it's really just calling
Image.getInstance(). Kinda misleading. Further, an Image isn't necessarily a
bunch of pixels. If you call jpeg.isJpeg(), it'll return false, wh
You don't convert anything to XML. Use the code as inspiration and write your
own to find the ND and replace them in place.
Paulo
De: [EMAIL PROTECTED] em nome de Sierra Bravo
Enviada: sex 08-Set-06 16:51
Para: itext-questions@lists.sourceforge.net
Assunto: Re:
Look at the code in PdfReader.consolidateNamedDestinations(), it will
locate all the destinations.
Thanks. I am able to convert all the NDs into an XML file from the PdfReader
class. Programmatically, I end up with a HashList that contains all modified
NDs. Now, how do I write it back into a c
Image img = bc.createImageWithBarcode(contentByte, Color.BLACK, Color.BLACK);
img.setRotation((float)Math.toRadians(45));
img.setAbsolutePosition(100, 100);
template.addImage(img);
Paulo
De: [EMAIL PROTECTED] em nome de CG
Enviada: sex 08-Set-06 19:36
Para:
> My goal is to rotate the barcode. I'm working with templates
> and direct
> content. I don't think PdfTemplate.addImage pays attention to
> this image's rotation.
Both versions of PdfContentByte.addImage() that take 6 floats override the
image's transformation matrix. You'll have to use Ima
> I have a class that extends PdfPageEventHelper.
>
> I build a footer using onEndPage. But in that method I use private
> variables included in the class. All those variables are never
> initialized (from the database).
It doesn't look like there's any new-ing going on for page events in PdfWrit
...in this context at least...
try {
String text = "FOO";
float barHeight = 20f;
float barWidth = 1f;
Barcode39 bc = new Barcode39();
bc.setCode(text);
bc.setStartStopText(false);
bc.setChecksumText(false);
bc.setAltText("");
bc.setBarHeight(barHeight);
bc.setX(barWidth);
Image img =
I don't think iText has that capability. Look
to pdfbox for something that can help...but you'll have to loop through each
page, extract the text, search it, and then break out of the loop when you're
satisfied.
I wrote something similar a while back...was
wishing I could use iText.
-AJ
At 01:36 PM 9/8/2006, Shadi wrote:
>How can I use iText to find a text in a PDF file and get the page
>number for back?
You can't.
Use PdfBox or JPEDAL instead.
Leonard
---
Leonard Rosenthol
Hello:
How can I use iText to find a text in a PDF file and get the page number for
back?
Thanks,
Shadi
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated
setPading()
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Kevin Buhr
> Sent: Friday, September 08, 2006 5:40 PM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] trouble with making the spacing
> smaller betweencells on
I have a class that extends PdfPageEventHelper.
I build a footer using onEndPage. But in that method I use private
variables included in the class. All those variables are never
initialized (from the database).
I know onEndPage is working correctly but I can't figure out how to
make references
I am trying the following code:
PdfReader pdfReader = new PdfReader(fileName);
FileOutputStream output = new FileOutputStream(outputFile);
PdfStamper pdfStamper = new PdfStamper(pdfReader, output);
Image jpeg = Jpeg.getInstance(pdfStamper.getImportedPage(pdfReader, 1));
Is it possible to get the
Hans-Werner Hilse wrotte:
>> Ok, thanks, I tested the above settings. This setting is work in
>> http, but is not work in https.
>> I think it is a IE bug. :-(
>>
>
> When I actually think about it, that may be by design. It's not very
> easy to recognize the end of a subprocess (at least when
bruno írta:
> Thanks, I'm forwarding it.
> This probably closes the thread on comp.text.pdf.
>
> Hans-Werner Hilse wrote:
>
>> Hi,
>>
>> On Fri, 08 Sep 2006 14:55:20 +0200 bruno <[EMAIL PROTECTED]> wrote:
>>
>>> Thank you for your answer.
>>> The OP used:
>>> Cache-Control: no-store
>>>
Hans-Werner Hilse wrote:
>Hi,
>
>sorry for letting bruno play the postman
>
No problem ;-)
>there we're ~2000 unfetched mails
>
If you log in to the preferences, you can set the option 'No mail'.
That way you don't receive mail from the mailing list, but you
can still post or answer question.
You
Hi,
sorry for letting bruno play the postman when I'm actually subscribed
here myself (but there we're ~2000 unfetched mails, so I hesitated at
first) ;-)
On Fri, 08 Sep 2006 15:21:28 +0200 yoursoft <[EMAIL PROTECTED]>
wrote:
> Ok, thanks, I tested the above settings. This setting is work in
>
Thanks, I'm forwarding it.
This probably closes the thread on comp.text.pdf.
Hans-Werner Hilse wrote:
> Hi,
>
> On Fri, 08 Sep 2006 14:55:20 +0200 bruno <[EMAIL PROTECTED]> wrote:
>>Thank you for your answer.
>>The OP used:
>> Cache-Control: no-store
>> Pragma: no-cache
>>See http://article.g
Alin Popa wrote:
> I don't blame you guys, at ALL.
I was making a joke, but forgot the smiley ;-)
> Don't worry, I realy apreciate your work here, it help me a lot.
Thank you for your kind words!
best regards,
Bruno
-
Usin
I don't blame you guys, at ALL.Don't worry, I realy apreciate your work here, it help me a lot.You are very right, about MS Word, but it's not up to me, my manager wants this kind of documents.
On 9/8/06, bruno <[EMAIL PROTECTED]> wrote:
Alin Popa wrote:> Thanks guys,>> I didn't know that the borde
Alin Popa wrote:
> Thanks guys,
>
> I didn't know that the border stuff option is available just in
> printing stage.
> I prefer to have this border removed when I'm displaying the document.
Don't blame us, blame Word!
> But if this cannot be done, I think I can live with that.
Maybe if you u
bruno írta:
> Hans-Werner Hilse wrote:
>
>
>> Hi,
>>
>> On Fri, 08 Sep 2006 12:19:31 +0200 bruno <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>>> This is a question about PDFs generated on the fly, served to a
>>> browser.
>>>
>>> X wrote:
>>>
>>>
>>>
Ok, I don't have problem with cachin
Thanks guys,I didn't know that the border stuff option is available just in printing stage.I prefer to have this border removed when I'm displaying the document.But if this cannot be done, I think I can leave with that.
Thanks once again for help ;)On 9/8/06, bruno <[EMAIL PROTECTED]> wrote:
Alin P
Hans-Werner Hilse wrote:
> Hi,
>
> On Fri, 08 Sep 2006 12:19:31 +0200 bruno <[EMAIL PROTECTED]> wrote:
>
>
>>This is a question about PDFs generated on the fly, served to a
>>browser.
>>
>>X wrote:
>>
>>
>>>Ok, I don't have problem with caching it. I have problem with
>>>caching time. I would l
Alin Popa wrote:
> Hi Mark,
>
> This is the code that I'm using it:
>
> tableFooter = new Table( 2 );
>
> Cell cellPageNo = new Cell( paraPageNo );
> cellPageNo.setBorder( Rectangle.NO_BORDER );
> cellPageNo.setBorderColor( Color.WHITE );
>
>
Hi Mark,This is the code that I'm using it: tableFooter = new Table( 2 );
Cell cellPageNo = new Cell( paraPageNo ); cellPageNo.setBorder( Rectangle.NO_BORDER );
cellPageNo.setBorderColor( Color.WHITE ); Cell cellDate = new Cell( paraDate );
On Friday 08 September 2006 13:55, Alin Popa wrote:
> I did the table as you told me, but I can't get read of that gray border.
> Is there a way to do that ?
You need to remove the border for the cells as well.
Either for each cell or via the defaultCell property of the Table.
Greetings,
Mark
--
Thank Mark for your quick answer.I did the table as you told me, but I can't get read of that gray border.Is there a way to do that ? This is how I did:Table tableFooter=new Table(2);tableFooter.addCell
(paraPageNo);tableFooter.addCell(paraDate);tableFooter.setBorder(0);tableFooter.setBorderColor(C
Hello,
I had the same problem...
If you use the same URL for the servlet,
the Acrobat-Plugin always fills in the previous entered data.
Add a random number to the URL of the servlet and the Reader will show
the PDF
without the values...
for example:
http://www.test.de/pdf.do?r=432534
where th
At 03:45 AM 9/8/2006, Sierra Bravo wrote:
>I need to pull out named destinations from a PDF file, change embedded
>spaces in the destinations to underscores and put it back into the same PDF.
Don't forget that you need to change NOT ONLY the actual
values in the Dests, but also all refer
> I really think this is a problem for the comp.text.pdf newsgroup.
> I forward the message (without your mail address to avoid SPAM).
> br,
> Bruno
>
Ok, thanks for it. :-)
-
Using Tomcat but need to do more? Need to sup
This is a question about PDFs generated on the fly, served to a browser.
X wrote:
> Bruno wrote:
>
>> PDF files are ALWAYS cached.
>> Adobe Reader is not able to read a PDF file from a byte stream.
>> This is not IE related, but Adobe Reader related.
>> The same goes for every other browser.
>>
>
yoursoft wrote:
> Dear Bruno,
>
> Thanks for your answer.
Sorry, now that I read your question a second time,
I see that I misinterpreted it.
I thought you were talking about caching the data entered in form fields.
>
>> Part of the answer is that the cache is not kept by the browser,
>> but by
Thanks Bruno, I'll check it out and try.
Regards,
Julie
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
bruno
Sent: Friday, September 08, 2006 5:42 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Can itext support double byt
Tan Hui Siang - Julie (DHL MY) wrote:
> Dear itext Gurus,
>
>
>
> I am new to itext. I need to generate pdf with Japanese characters.
> Can this be done with itext? If yes, please advice.
>
>
>
Of course.
There's the online tutorial:
http://itextdocs.lowagie.com/tutorial/fonts/
http://itextdo
Dear itext Gurus,
I am new to itext. I need to generate pdf with Japanese
characters. Can this be done with itext? If yes, please advice.
Thanks and Regards,
Julie
-
Using Tomcat but need to do more
Look at the code in PdfReader.consolidateNamedDestinations(), it will
locate all the destinations.
Paulo
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Sierra Bravo
> Sent: Friday, September 08, 2006 8:45 AM
> To: itext-questions@lists.sourcefo
yoursoft wrote:
>Dear List,
>
>I have a problem with IE cache:
>I generate PDFs from java servlets with iText.
>These PDFs contain personal data.
>In this case I would like to remove these PDFs from client IE cache.
>I can't set clients IE settings.
>
>
I have read the answer to this question
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of santosh choudhary
> Sent: Thursday, September 07, 2006 2:18 PM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] table with properties
>
> Hi,
> I have to create a table wi
On Friday 08 September 2006 10:17, Alin Popa wrote:
> Page No - Allign LEFT
> Current Date - Allign RIGHT
> (If there is possible, both on the same row/paragraph)
>
> I tryied with RtfHeaderFooterGroup, but when I'm doing setHeaderFooter, it
> will overwrite my previous paragraph.
> Maybe if this i
Dear List,
I have a problem with IE cache:
I generate PDFs from java servlets with iText.
These PDFs contain personal data.
In this case I would like to remove these PDFs from client IE cache.
I can't set clients IE settings.
I have https connection. I have the http head settings that work on h
S G?O??S wrote:
> Hi everybody,
> I am trying to create a PDF document using the following command
> Paragraph p = new Paragraph("Greek Words",
> FontFactory.getFont(FontFactory.HELVETICA, 18, Font.BOLDITALIC, new
> Color(0, 0, 255)));
> and I am getting instead of greek characte
santosh choudhary wrote:
> Please short out it It's really very URGENT
I doubt it if anyone on this list has any idea what you are talking about.
br,
Bruno
-
Using Tomcat but need to do more? Need to support web services, s
vedran vedran wrote:
>p.s.: i have readed the itext tutorial, but there are just examples for
>converting into
>file system, and not to byte array
>
Then you haven't read http://itextdocs.lowagie.com/tutorial/general/webapp/
br,
Bruno
Hi,There is someone who could please help me in solving a problem like that: I want to display a footer (to all pages from the document) that will have Page No and Current Date.I have these 2 elements, but I want to display them in diferent parts of the page:
Page No - Allign LEFTCurrent Date - Al
Patrick Ngok wrote:
> Dear Sir,
> As I use iText to generate PDF with image inside:
> PdfPTable tblCellRow1 = null;
>
> byte[] img1;
> ...
> tblCellRow11.addCell(Image.getInstance(img1));
> The pdf can be generated, but the information like 'insufficient image
> information' is shown when the
[EMAIL PROTECTED] wrote:
>This option is unchecked already, but still can't show anything. It
>seems can't write anything to the document if the font size is 6.
>
I can't reproduce the problem.
I wrote a little test class with this code snippet:
BaseFont bf = BaseFont.createFont("c:/windows/fon
Hi Paulo,
i see. In my case, the wysiwyg editor generated the
font name as "Times New Roman" instead. After a string-replace
to "Times-Roman" it works like a dream :-)
Thanks
rgds
Daniel
>It's done in the html:
>
>Look at me!
>
>Paulo
Dear all
I need to pull out named destinations from a PDF file, change embedded
spaces in the destinations to underscores and put it back into the same PDF.
How can this be done? While this Board has several examples of extracting
NDs, I couldn't locate any about writing them back.
Thanks in adv
Dear Sir,
As I use iText to generate PDF with image inside:
PdfPTable tblCellRow1 =
null;
byte[] img1;
...
tblCellRow11.addCell(Image.getInstance(img1));
The pdf can be generated, but the information like
'insufficient image information' is shown when
53 matches
Mail list logo