Re: [iText-questions] iText query - Inserting a PDF page in the middle of another PDF document [C1]

2009-06-22 Thread shivakumar . jangamshetti
Hi,
Thanks for your reply.
I wish to insert a PDF page in the middle of another PDF not appending at the 
end of PDF.
For example: If there is a PDF document of three pages I want to insert a PDF 
page between first and second page.
Any ideas on this task are most welcome.
With warm regards,
Shivakumar

--
This message was sent on behalf of shivakumar.jangamshe...@sgcib.com at 
openSubscriber.com
http://www.opensubscriber.com/message/itext-questions@lists.sourceforge.net/12457651.html

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/


[iText-questions] Re :Re: HTML Parser Blank Page in PDF

2009-06-22 Thread sachin
Hi bruno i am sachin. I have generated pdf using itext but the problem is i 
can't save that pdf in my system. How i can save that pdf ?On Fri, 19 Jun 2009 
15:57:31 +0200 Post all your questions about iText here  wrote  dmholte wrote:  
> Hi Bruno, the variable String HospNote contains the original html. The 
answer is very simple (explained in chapter 6 of the book),  but I have some 
additional remarks:>   writer.setPageEvent(new ParseBuildPdf()); 
   Using an event to add header/footers is good.>   HeaderFooter 
header = new HeaderFooter(headerPhrase,false);Using the HeaderFooter class 
is no longer supported!>   ArrayList p = 
HTMLWorker.parseToList(new  > StringReader(HospNote),null);  >
 for (int k=0;k 
document.add((Element)p.get(k));//step 4 adding  > content- the note
Replace the above with:Element e;  for (int k=0;k   
baos.writeTo(fo);  You didn't write anything to baos AND fo should already be 
closed by   document.close();  Moreover: YOU SHOULD NEVER ADD EXTRA BYTES to a 
PDF document!!!  All this should be unnecessary:  >   try 
{fo.flush();}catch(Exception e){;}  >   try 
{fo.close();}catch(Exception e){;}  >   try 
{baos.close();}catch(Exception e){;}  >   fo = null;  >   
baos = null;   br,  Bruno
--  
Crystal Reports - New Free Runtime and 30 Day Trial  Check out the new 
simplified licensing option that enables unlimited  royalty-free distribution 
of the report engine for externally facing   server and web deployment.  
http://p.sf.net/sfu/businessobjects  
___  iText-questions mailing list  
iText-questions@lists.sourceforge.net  
https://lists.sourceforge.net/lists/listinfo/itext-questionsBuy 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/  
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/

[iText-questions] [somewhat OT] PDF reader for cell phones- general thoughts on reformatting

2009-06-22 Thread Mike Marchywka

We were having a bit of a discussion here,

http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&thread.id=43030

about pdf viewing on cell phones. Is anyone using itext or
other packages to generate pdf files for cell phone viewing
or "reflow" documents intended for one display device to be
made available on differently enabled devices?
With things like html, or any surviving logical structure in 
a pdf, you have some chance to "reflow" a page to match
the immediate display capabilities.

Thanks.


Mike Marchywka
586 Saint James Walk
Marietta GA 30067-7165
415-264-8477 (w)<- use this
404-788-1216 (C)<- leave message
989-348-4796 (P)<- emergency only
marchy...@hotmail.com
Note: If I am asking for free stuff, I normally use for hobby/non-profit
information but may use in investment forums, public and private.
Please indicate any concerns if applicable.
Note: hotmail is getting cumbersom, try also marchy...@yahoo.com





_
Hotmail® has ever-growing storage! Don’t worry about storage limits.
http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/


[iText-questions] Digital signature content

2009-06-22 Thread Mikro Trekker
What is the PDF's digital signature content (certificate, ...) ?

I am using OpenSC pkcs#11 library to access my smartcard and
iTextSharp.
For some reason Reader doesn't "recognize" my siganture.

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/


Re: [iText-questions] Sign a PDF using a scanned signature

2009-06-22 Thread Suladna
I mean, changing it from a picture of a head and a question mark, as seen in 
the below link:
 
http://www.berthou.com/_img/pdf_sign.png
 
(Instead of this, I want to show my scanned signature)


--- On Sun, 6/21/09, Leonard Rosenthol  wrote:


From: Leonard Rosenthol 
Subject: Re: [iText-questions] Sign a PDF using a scanned signature
To: "'Post all your questions about iText here'" 

Date: Sunday, June 21, 2009, 3:08 AM








What do you mean “change the signature object”?  Change it in what way?!?!?!
 

From: Suladna [mailto:sula...@yahoo.com] 
Sent: Saturday, June 20, 2009 6:01 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Sign a PDF using a scanned signature
 





I'm not so high on this.. do you have any example on how to change the 
signature image using XObject? (or n2 layer)

/Sul

 


--- On Fri, 6/19/09, Leonard Rosenthol  wrote:


From: Leonard Rosenthol 
Subject: Re: [iText-questions] Sign a PDF using a scanned signature
To: "Post all your questions about iText here" 

Date: Friday, June 19, 2009, 9:38 AM

Be aware that using the "n layers" models for signature appearances is NOT 
RECOMMENDED by Adobe (hasn't been since PDF 1.6). Instead we recommend you just 
use a simple XObject for whatever goes in there.

-Original Message-
From: Bruno Lowagie [mailto:br...@lowagie.com] 
Sent: Friday, June 19, 2009 9:33 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Sign a PDF using a scanned signature

Suladna wrote:
> Hi!
>  
> I have read the "How to sign a PDF using iText and iTextSharp" and have 
> succesfully signed a PDF document through iText.
>  
> But I have not succeeded to sign using a scanned signature (an image), 
> something which can be done in Adobe Acrobat. Is it possible to do this 
> using iText?

You need to change the n2 layer in the appearance.
It's possible, but there's no documentation available on how to do this.
br,
Bruno

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/
 
-Inline Attachment Follows-


--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
-Inline Attachment Follows-


___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/


  --
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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 s

[iText-questions] Image overlaps previous paragraph text

2009-06-22 Thread be
Hi,

I have a problem with an image inside a paragraph. If I add an image using 
a chunk, the image overlaps the descender of the previous paragraph text 
(see sample code/pdf below). Is there a way to add some special leading to 
the image or paragraph? It seems to be the same problem when using 
ColumnText.

Regards
Bernd

   try {
Document document = new Document(PageSize.A4, 50, 50, 150, 
72);
PdfWriter writer = PdfWriter.getInstance(document, new 
FileOutputStream(basePath + "image.pdf"));
document.open();
document.add(new Phrase("The quick brown fox jumps over the 
lazy dog"));
document.add(new Phrase("\n"));
document.add(new Chunk(Image.getInstance(new 
URL("http://www.lowagie.com/iText/images/logo.gif";)), 0, 0, true));
document.add(new Phrase("The quick brown fox jumps over the 
lazy dog"));
document.close();
} catch (Exception e) {
e.printStackTrace();
}



image.pdf
Description: Binary data
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/

[iText-questions] Lossing the number formats while merging XFA forms

2009-06-22 Thread SRI!0!

Hi,
   I have a requirement of merging to two XFA forms, Iam using PDFCopy to
merge the Documents. This method works fine for normal AcroForms, But if the
Document is of type XFA form then Iam losing the formats that are applied to
the field values i.e; without merging the values is like (75,000.00) but if
i use merging then the value is coming as (75000). Please let me know how to
merge two XFA pdf documents without losing the number format.
:-)
Thanks,
Sri. 
-- 
View this message in context: 
http://www.nabble.com/Lossing-the-number-formats-while-merging-XFA-forms-tp24145167p24145167.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/


[iText-questions] Unable to use Corporate Certificate

2009-06-22 Thread Samuel Joseph
We use iText to do the autoprint with Silent print feature. After Adobe Reader 
was upgraded we started getting the pop-up "This Document is tying to print. 
Do you want to allow it?"

To fix this issue, we plan to use our corporate certificate. The code is able 
to read the certificate and the document gets signed but still getting the 
above popup and the pdf document also mentions the below.

"Validity of document certification is UNKNOWN. the author could not be 
verified"

If I save the document, click the "Digital signature" and add it to the list 
of trusted identitites manually, I stop getting the pop-up.

Is there code way to dynamically add this to the list of trusted identitites?
OR Can anyone point out what I am doing wrong? I used the code as specified in 
the http://itextpdf.sourceforge.net/howtosign.html#signextstd 
i.e. example in "An example with an external signature in Self Sign Mode"


I tried looking up other threads with similar problems but could find one same 
as mine.

Any help/feedback is greatly appreciated.

-Sam





--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/


[iText-questions] Datamatrix Width, Height Adjustments

2009-06-22 Thread Glen Wilkinson
I am able to create a DataMatrix when I set the width and height to "0", but
when I try to increase it in size to 100x150 I get a generate code of "3".

 

It works just fine when I put these two properties at "0".

 

Dim manMatrix As New BarcodeDatamatrix()

Dim manCode As Integer

manMatrix.Options = BarcodeDatamatrix.DM_AUTO

manMatrix.Width = 150

manMatrix.Height = 150

 

manCode = manMatrix.Generate(Guid.NewGuid.ToString)

 

Dim dmImage As iTextSharp.text.Image

Try

dmImage = manMatrix.CreateImage

dmImage.SetAbsolutePosition(550, 750)

over.AddImage(dmImage)

 

Catch ex As Exception

over.SetTextMatrix(450, 365)

over.ShowText(manCode.ToString)

End Try

 

 

 



 

<>BEGIN:VCARD
VERSION:2.1
X-MS-SIGNATURE:YES
N;LANGUAGE=en-us:Wilkinson;Glen;M.
FN:Glen M. Wilkinson
ORG:Dory Services, LLC.
TEL;HOME;VOICE:(603) 580-1562
TEL;CELL;VOICE:(603) 770-8195
ADR;WORK;PREF:;;244 Cuyahoga Court;South Lyon;MI;48178;United States of America
LABEL;WORK;PREF;ENCODING=QUOTED-PRINTABLE:244 Cuyahoga Court=0D=0A=
South Lyon, MI 48178
X-MS-OL-DEFAULT-POSTAL-ADDRESS:2
URL;WORK:www.stabledory.com
EMAIL;PREF;INTERNET:gwilkin...@stabledory.com
X-MS-OL-DESIGN;CHARSET=utf-8:http://schemas.microsoft.com/office/outlook/12/electronicbusinesscards"; ver="1.0" layout="left" bgcolor="ff">MobileHome
REV:20090601T133313Z
END:VCARD
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/

Re: [iText-questions] Sign a PDF using a scanned signature

2009-06-22 Thread Leonard Rosenthol
You have complete control over what goes in the signature’s appearance – but 
whatever you want there…

From: Suladna [mailto:sula...@yahoo.com]
Sent: Monday, June 22, 2009 8:44 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Sign a PDF using a scanned signature

I mean, changing it from a picture of a head and a question mark, as seen in 
the below link:

http://www.berthou.com/_img/pdf_sign.png

(Instead of this, I want to show my scanned signature)


--- On Sun, 6/21/09, Leonard Rosenthol  wrote:

From: Leonard Rosenthol 
Subject: Re: [iText-questions] Sign a PDF using a scanned signature
To: "'Post all your questions about iText here'" 

Date: Sunday, June 21, 2009, 3:08 AM
What do you mean “change the signature object”?  Change it in what way?!?!?!

From: Suladna [mailto:sula...@yahoo.com]
Sent: Saturday, June 20, 2009 6:01 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Sign a PDF using a scanned signature

I'm not so high on this.. do you have any example on how to change the 
signature image using XObject? (or n2 layer)
/Sul


--- On Fri, 6/19/09, Leonard Rosenthol  wrote:

From: Leonard Rosenthol 
Subject: Re: [iText-questions] Sign a PDF using a scanned signature
To: "Post all your questions about iText here" 

Date: Friday, June 19, 2009, 9:38 AM
Be aware that using the "n layers" models for signature appearances is NOT 
RECOMMENDED by Adobe (hasn't been since PDF 1.6). Instead we recommend you just 
use a simple XObject for whatever goes in there.

-Original Message-
From: Bruno Lowagie 
[mailto:br...@lowagie.com]
Sent: Friday, June 19, 2009 9:33 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Sign a PDF using a scanned signature

Suladna wrote:
> Hi!
>
> I have read the "How to sign a PDF using iText and iTextSharp" and have
> succesfully signed a PDF document through iText.
>
> But I have not succeeded to sign using a scanned signature (an image),
> something which can be done in Adobe Acrobat. Is it possible to do this
> using iText?

You need to change the n2 layer in the appearance.
It's possible, but there's no documentation available on how to do this.
br,
Bruno

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
iText-questions mailing list
itext-questi...@lists.sourceforge..net
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/

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/



-Inline Attachment Follows-
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org

-Inline Attachment Follows-
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/



Re: [iText-questions] Digital signature content

2009-06-22 Thread Leonard Rosenthol
All the gory details can be found in the Adobe PDF Reference or ISO 32000-1.

Leonard

-Original Message-
From: Mikro Trekker [mailto:mtrek...@hot.ee] 
Sent: Monday, June 22, 2009 8:02 AM
To: iText-questions@lists.sourceforge.net
Subject: [iText-questions] Digital signature content

What is the PDF's digital signature content (certificate, ...) ?

I am using OpenSC pkcs#11 library to access my smartcard and
iTextSharp.
For some reason Reader doesn't "recognize" my siganture.

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/


Re: [iText-questions] Lossing the number formats while merging XFA forms

2009-06-22 Thread Leonard Rosenthol
There is no support in iText for merging XFA-based forms.  You will need to 
write the code yourself that will process the XFA grammar accordingly...

Start by reading the PDF Reference/ISO 32000-1 and the XFA specification...

Leonard

-Original Message-
From: SRI!0! [mailto:srikan...@live.in] 
Sent: Monday, June 22, 2009 6:49 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Lossing the number formats while merging XFA forms


Hi,
   I have a requirement of merging to two XFA forms, Iam using PDFCopy to
merge the Documents. This method works fine for normal AcroForms, But if the
Document is of type XFA form then Iam losing the formats that are applied to
the field values i.e; without merging the values is like (75,000.00) but if
i use merging then the value is coming as (75000). Please let me know how to
merge two XFA pdf documents without losing the number format.
:-)
Thanks,
Sri. 
-- 
View this message in context: 
http://www.nabble.com/Lossing-the-number-formats-while-merging-XFA-forms-tp24145167p24145167.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/


Re: [iText-questions] Unable to use Corporate Certificate

2009-06-22 Thread Leonard Rosenthol
Think about what you are asking...

You are asking for a way for make any PDF automatically trusted.  

Do you understand how silly a request that is when you think about it??


The whole reason for the warning message is to prevent documents from doing 
things that they should not UNLESS they are coming from a trusted 
person/corporation.  Certifying the document, with a trusted certificate, is 
one way to imbue trust to a document.  You can also place it in a trusted 
location (as defined by Acrobat/Reader preferences).

Not the answer you want, but hopefully that helps...

Leonard

-Original Message-
From: Samuel Joseph [mailto:bdb_...@hotmail.com] 
Sent: Monday, June 22, 2009 10:50 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Unable to use Corporate Certificate

We use iText to do the autoprint with Silent print feature. After Adobe Reader 
was upgraded we started getting the pop-up "This Document is tying to print. 
Do you want to allow it?"

To fix this issue, we plan to use our corporate certificate. The code is able 
to read the certificate and the document gets signed but still getting the 
above popup and the pdf document also mentions the below.

"Validity of document certification is UNKNOWN. the author could not be 
verified"

If I save the document, click the "Digital signature" and add it to the list 
of trusted identitites manually, I stop getting the pop-up.

Is there code way to dynamically add this to the list of trusted identitites?
OR Can anyone point out what I am doing wrong? I used the code as specified in 
the http://itextpdf.sourceforge.net/howtosign.html#signextstd 
i.e. example in "An example with an external signature in Self Sign Mode"


I tried looking up other threads with similar problems but could find one same 
as mine.

Any help/feedback is greatly appreciated.

-Sam





--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/


Re: [iText-questions] Unable to use Corporate Certificate

2009-06-22 Thread Samuel Joseph
Leonard Rosenthol  adobe.com> writes:

> 
> Think about what you are asking...
> 
> You are asking for a way for make any PDF automatically trusted.  
> 
> Do you understand how silly a request that is when you think about it??
> 
> The whole reason for the warning message is to prevent documents from doing 
things that they should not
> UNLESS they are coming from a trusted person/corporation.  Certifying the 
document, with a trusted
> certificate, is one way to imbue trust to a document.  You can also place it 
in a trusted location (as defined
> by Acrobat/Reader preferences).
> 
> Not the answer you want, but hopefully that helps...
> 
> Leonard
> 


Hi Leonard,

Thanks for the info. The certificate we are trying to use is a valid and legal 
Corporate certificate signed by GlobalSign. Now since it is a trusted 
certificate, I assume it should not show that warning right?

Am I missing something here?

-Sam



--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/


[iText-questions] File does not start with %PDF- ( after using pdfstamper )

2009-06-22 Thread vmathai

I have a situation where the user uploads a pdf file (template) and it is
stored in the SQL Server Table in a field which has an image datatype.
Everything worked well so far. Now the user wants some data written onto the
pdf dynamically over the template. I used pdfstamper to write the text over
the data retrieved from the table.

Steps Taken:

1) Saved the file to the local harddrive and i was able to bring the pdf up
without any issues.
2) Saved it back to the table and while retrieving the pdf via the web app.
I get the error message "File does not start with %PDF-" 
3) I opened the file via notepad. Before overwriting with data and the file
starts with "%PDF-1.4
%âãÏÓ
1 0 obj

Re: [iText-questions] Unable to use Corporate Certificate

2009-06-22 Thread Leonard Rosenthol
Sure - the certificate is valid and legal, that's not the issue.

It's about trust.  NOT that I trust the validity of the certificate but that I 
trust the OWNER of the certificate.

Let's say that the certificate is from ACME Corp.  I don't have any 
relationship with ACME, so therefore I don't trust them or any document that 
they send me, and don't wish them to do things behind my back.

But if the certificate was from Adobe Systems, where I work, I would certainly 
put them in my trusted list of certificate and then allow their documents to 
work as expected.

If you are doing this in a corporate setting, for your employees, you can 
easily "push" the certificate and the trust out to them...

Leonard

-Original Message-
From: Samuel Joseph [mailto:bdb_...@hotmail.com] 
Sent: Monday, June 22, 2009 11:18 AM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Unable to use Corporate Certificate

Leonard Rosenthol  adobe.com> writes:

> 
> Think about what you are asking...
> 
> You are asking for a way for make any PDF automatically trusted.  
> 
> Do you understand how silly a request that is when you think about it??
> 
> The whole reason for the warning message is to prevent documents from doing 
things that they should not
> UNLESS they are coming from a trusted person/corporation.  Certifying the 
document, with a trusted
> certificate, is one way to imbue trust to a document.  You can also place it 
in a trusted location (as defined
> by Acrobat/Reader preferences).
> 
> Not the answer you want, but hopefully that helps...
> 
> Leonard
> 


Hi Leonard,

Thanks for the info. The certificate we are trying to use is a valid and legal 
Corporate certificate signed by GlobalSign. Now since it is a trusted 
certificate, I assume it should not show that warning right?

Am I missing something here?

-Sam



--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/


Re: [iText-questions] Sign a PDF using a scanned signature

2009-06-22 Thread Paulo Soares
See http://article.gmane.org/gmane.comp.java.lib.itext.general/31769/.

Paulo


From: Suladna [sula...@yahoo.com]
Sent: Monday, June 22, 2009 1:44 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Sign a PDF using a scanned signature

I mean, changing it from a picture of a head and a question mark, as seen in 
the below link:

http://www.berthou.com/_img/pdf_sign.png

(Instead of this, I want to show my scanned signature)


--- On Sun, 6/21/09, Leonard Rosenthol  wrote:

From: Leonard Rosenthol 
Subject: Re: [iText-questions] Sign a PDF using a scanned signature
To: "'Post all your questions about iText here'" 

Date: Sunday, June 21, 2009, 3:08 AM

What do you mean “change the signature object”?  Change it in what way?!?!?!

From: Suladna [mailto:sula...@yahoo.com]
Sent: Saturday, June 20, 2009 6:01 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Sign a PDF using a scanned signature

I'm not so high on this.. do you have any example on how to change the 
signature image using XObject? (or n2 layer)
/Sul


--- On Fri, 6/19/09, Leonard Rosenthol  wrote:

From: Leonard Rosenthol 
Subject: Re: [iText-questions] Sign a PDF using a scanned signature
To: "Post all your questions about iText here" 

Date: Friday, June 19, 2009, 9:38 AM
Be aware that using the "n layers" models for signature appearances is NOT 
RECOMMENDED by Adobe (hasn't been since PDF 1.6). Instead we recommend you just 
use a simple XObject for whatever goes in there.

-Original Message-
From: Bruno Lowagie 
[mailto:br...@lowagie.com]
Sent: Friday, June 19, 2009 9:33 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Sign a PDF using a scanned signature

Suladna wrote:
> Hi!
>
> I have read the "How to sign a PDF using iText and iTextSharp" and have
> succesfully signed a PDF document through iText.
>
> But I have not succeeded to sign using a scanned signature (an image),
> something which can be done in Adobe Acrobat. Is it possible to do this
> using iText?

You need to change the n2 layer in the appearance.
It's possible, but there's no documentation available on how to do this.
br,
Bruno

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
iText-questions mailing list
itext-questi...@lists.sourceforge..net
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/

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/



-Inline Attachment Follows-

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org

-Inline Attachment Follows-

___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/




Aviso Legal:
Esta mensagem é d

Re: [iText-questions] File does not start with %PDF- ( after using pdfstamper )

2009-06-22 Thread Paulo Soares
Remove mStream.Seek(0, SeekOrigin.Begin).

Paulo


From: vmathai [vmat...@bokf.com]
Sent: Monday, June 22, 2009 4:31 PM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] File does not start with %PDF- ( after using 
pdfstamper )

I have a situation where the user uploads a pdf file (template) and it is
stored in the SQL Server Table in a field which has an image datatype.
Everything worked well so far. Now the user wants some data written onto the
pdf dynamically over the template. I used pdfstamper to write the text over
the data retrieved from the table.

Steps Taken:

1) Saved the file to the local harddrive and i was able to bring the pdf up
without any issues.
2) Saved it back to the table and while retrieving the pdf via the web app.
I get the error message "File does not start with %PDF-"
3) I opened the file via notepad. Before overwriting with data and the file
starts with "%PDF-1.4
%âãÏÓ
1 0 obj

[iText-questions] iText included in the Softpedia software database

2009-06-22 Thread Softpedia Editorial Team

Congratulations,

iText, one of your products, has been added to Softpedia's database of
software programs for the Windows operating system. It is featured with a
description text, screenshots, download links and technical details on this
page:
http://www.softpedia.com/get/Programming/Components-Libraries/iText-JAVA-PDF-library.shtml

The description text was created by our editors, using sources such as
text from your product's homepage, information from its help system, the
PAD file (if available) and the editor's own opinions on the program
itself.





Your developer page on Softpedia can be reached at the URL below. It
contains the list of software products and a link to your website.
http://www.softpedia.com/developer/Bruno-Lowagie-25107.html 

If you feel that having your product listed on Softpedia is not a benefit
for you or simply need something changed or updated, please contact us via
email at webmas...@softpedia.com and we will work with you to fix any
problem you may have found with the product's listing.

-- 
Sincerely,
The Softpedia Team

---
Softpedia is a library of over 400,000 free and free-to-try software
programs for Windows, Mac OS and Linux, games and gaming tools, Windows
device drivers, mobile devices and IT-related articles.
---
Softpedia - the encyclopedia of free software downloads
http://www.softpedia.com/


--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/


Re: [iText-questions] Unable to use Corporate Certificate

2009-06-22 Thread Samuel Joseph
Leonard Rosenthol  adobe.com> writes:

> 
> Sure - the certificate is valid and legal, that's not the issue.
> 
> It's about trust.  NOT that I trust the validity of the certificate but that 
I trust the OWNER of the certificate.
> 
> Let's say that the certificate is from ACME Corp.  I don't have any 
relationship with ACME, so therefore I
> don't trust them or any document that they send me, and don't wish them to 
do things behind my back.
> 
> But if the certificate was from Adobe Systems, where I work, I would 
certainly put them in my trusted list of
> certificate and then allow their documents to work as expected.
> 
> If you are doing this in a corporate setting, for your employees, you can 
easily "push" the certificate and
> the trust out to them...
> 
> Leonard
> 

Ahh...yes... this is what I am trying to do. I should've mentioned this 
earlier. My apologies.

I am doing this in a Corporate setting. The users are our own employees in the 
same intranet setting. In this case how do I "push" the certificate and the 
trust out to them?

I thought if I email a user the exported certificate in .pfx format and make 
them import it , they should be seeing it as a trusted certificate in thier IE 
browser but it did not work and they still get the pop-up. 

Any ideas?
-Sam


--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/


[iText-questions] subscribe

2009-06-22 Thread Carballo, Efrain
 

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/

[iText-questions] Where is iText In Action Code Samples Zip File?

2009-06-22 Thread Carballo, Efrain
Hi,

 

I purchased the book but I cannot find the Zip file containing all the
code samples in the book.  Can someone point me to the location of this
file?  Thanks.

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/

Re: [iText-questions] Where is iText In Action Code Samples Zip File?

2009-06-22 Thread Alexis Pigeon
Hi Efrain,

2009/6/22 Carballo, Efrain 

>  Hi,
>
>  I purchased the book but I cannot find the Zip file containing all the
> code samples in the book.  Can someone point me to the location of this
> file?  Thanks.
>
AFAIK, there's no archive containing all the examples from the book.
However, they are available as separate files, together with some other
examples, from the iText website :

< http://www.1t3xt.info/examples/itext-in-action.php >

HTH,
alexis
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/

Re: [iText-questions] File does not start with %PDF- ( after using pdfstamper )

2009-06-22 Thread vmathai

that worked!!


Paulo Soares-3 wrote:
> 
> Remove mStream.Seek(0, SeekOrigin.Begin).
> 
> Paulo
> 
> 
> From: vmathai [vmat...@bokf.com]
> Sent: Monday, June 22, 2009 4:31 PM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] File does not start with %PDF- ( after using
> pdfstamper )
> 
> I have a situation where the user uploads a pdf file (template) and it is
> stored in the SQL Server Table in a field which has an image datatype.
> Everything worked well so far. Now the user wants some data written onto
> the
> pdf dynamically over the template. I used pdfstamper to write the text
> over
> the data retrieved from the table.
> 
> Steps Taken:
> 
> 1) Saved the file to the local harddrive and i was able to bring the pdf
> up
> without any issues.
> 2) Saved it back to the table and while retrieving the pdf via the web
> app.
> I get the error message "File does not start with %PDF-"
> 3) I opened the file via notepad. Before overwriting with data and the
> file
> starts with "%PDF-1.4
> %âãÏÓ
> 1 0 obj< 4) File after overwriting with data : the file looks like this "1 0
> obj< information.
> 
> Is there any properties i could use to set the PDF information?
> 
> Has anyone encountered a similar situation? Please help!!
> 
> Thanks in advance,
> -Matt
> 
> Below is the sample code snippet:
> 
> PdfReader pdfReader = new PdfReader(d.DisclosurePdf);
> //PdfReader pdfReader = new PdfReader(@"d:\test\xyz.pdf");
> PdfStamper ps = new PdfStamper(pdfReader, mStream,'\0');
> PdfContentByte under = ps.GetUnderContent(1);
> PdfContentByte over = ps.GetOverContent(1);
> BaseFont bf = BaseFont.CreateFont(BaseFont.HELVETICA, BaseFont.WINANSI,
> BaseFont.EMBEDDED);
> // text over the existing page
> over.BeginText();
> over.SetFontAndSize(bf, 10);
> over.SetTextMatrix(95, 650);
> over.ShowText(DateTime.Now.ToShortDateString());
> over.EndText();
> over.BeginText();
> over.SetFontAndSize(bf, 10);
> over.SetTextMatrix(250, 650);
> over.ShowText("5000.00");
> over.EndText();
> mStream.Seek(0, SeekOrigin.Begin);
> ps.Close();
> result = mStream.ToArray();
> 
> Aviso Legal:
> Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
> informação confidencial ou legalmente protegida. A incorrecta transmissão
> desta mensagem não significa a perca de confidencialidade. Se esta
> mensagem for recebida por engano, por favor envie-a de volta para o
> remetente e apague-a do seu sistema de imediato. É proibido a qualquer
> pessoa que não o destinatário de usar, revelar ou distribuir qualquer
> parte desta mensagem. 
> 
> Disclaimer:
> This message is destined exclusively to the intended receiver. It may
> contain confidential or legally protected information. The incorrect
> transmission of this message does not mean the loss of its
> confidentiality. If this message is received by mistake, please send it
> back to the sender and delete it from your system immediately. It is
> forbidden to any person who is not the intended receiver to use,
> distribute or copy any part of this message.
> 
> --
> Are you an open source citizen? Join us for the Open Source Bridge
> conference!
> Portland, OR, June 17-19. Two days of sessions, one day of unconference:
> $250.
> Need another reason to go? 24-hour hacker lounge. Register today!
> http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> 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/
> 

-- 
View this message in context: 
http://www.nabble.com/File-does-not-start-with--PDF--%28-after-using-pdfstamper-%29-tp24149110p24155143.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/

Re: [iText-questions] Unable to use Corporate Certificate

2009-06-22 Thread Leonard Rosenthol
Use standard enterprise distribution tools - Tivoli, SAP, etc.  You can also 
look at the Acrobat Enterprise Wizard...

Leonard


On 6/22/09 12:58 PM, "Samuel Joseph"  wrote:

Leonard Rosenthol  adobe.com> writes:

>
> Sure - the certificate is valid and legal, that's not the issue.
>
> It's about trust.  NOT that I trust the validity of the certificate but that
I trust the OWNER of the certificate.
>
> Let's say that the certificate is from ACME Corp.  I don't have any
relationship with ACME, so therefore I
> don't trust them or any document that they send me, and don't wish them to
do things behind my back.
>
> But if the certificate was from Adobe Systems, where I work, I would
certainly put them in my trusted list of
> certificate and then allow their documents to work as expected.
>
> If you are doing this in a corporate setting, for your employees, you can
easily "push" the certificate and
> the trust out to them...
>
> Leonard
>

Ahh...yes... this is what I am trying to do. I should've mentioned this
earlier. My apologies.

I am doing this in a Corporate setting. The users are our own employees in the
same intranet setting. In this case how do I "push" the certificate and the
trust out to them?

I thought if I email a user the exported certificate in .pfx format and make
them import it , they should be seeing it as a trusted certificate in thier IE
browser but it did not work and they still get the pop-up.

Any ideas?
-Sam


--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/


--
Leonard Rosenthol
PDF Standards Architect
Adobe Systems Incorporated
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/

[iText-questions] Re :Re: Unable to use Corporate Certificate

2009-06-22 Thread sachin
Hi i am sachin. i have generated editable pdf using itext. but the contents of 
the pdf i can't save. how to do that. please help me.On Mon, 22 Jun 2009 
19:22:51 -0700 Post all your questions about iText here  wrote  Re: 
[iText-questions] Unable to use Corporate Certificate  Use standard 
enterprise distribution tools – Tivoli, SAP, etc.  You can also look at 
the Acrobat Enterprise Wizard...Leonard  On 6/22/09 12:58 PM, "Samuel 
Joseph"  wrote:Leonard Rosenthol  adobe.com> writes:>  > Sure 
- the certificate is valid and legal, that's not the issue.  >  > It's 
about trust.  NOT that I trust the validity of the certificate but that  I 
trust the OWNER of the certificate.  >  > Let's say that the certificate 
is from ACME Corp.  I don't have any  relationship with ACME, so therefore 
I  > don't trust them or any document that they send me, and don't wish them 
to  do things behind my back.  >  > But if the certificate was from Adobe 
Systems, where I work, I would  certainly put them in my trusted list of  > 
certificate and then allow their documents to work as expected.  >  > If 
you are doing this in a corporate setting, for your employees, you can  easily 
"push" the certificate and  > the trust out to them...  >  > Leonard  
>Ahh...yes... this is what I am trying to do. I should've mentioned this 
 earlier. My apologies.I am doing this in a Corporate setting. The users 
are our own employees in the  same intranet setting. In this case how do I 
"push" the certificate and the  trust out to them?I thought if I email a 
user the exported certificate in .pfx format and make  them import it , they 
should be seeing it as a trusted certificate in thier IE  browser but it did 
not work and they still get the pop-up.Any ideas?  -Sam  
--  
Are you an open source citizen? Join us for the Open Source Bridge conference!  
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.  
Need another reason to go? 24-hour hacker lounge. Register today!  
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org  
___  iText-questions mailing list  
iText-questions@lists.sourceforge.net  
https://lists.sourceforge.net/lists/listinfo/itext-questionsBuy 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/  --   Leonard 
Rosenthol  PDF Standards Architect  Adobe Systems Incorporated
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/

[iText-questions] Re :Re: Sign a PDF using a scanned signature

2009-06-22 Thread sachin
hi i am sachin. i have generated editable pdf using itext. i can't save the pdf 
along with contents in system. how to do that? please help me.On Mon, 22 Jun 
2009 05:44:19 -0700 (PDT) Post all your questions about iText here  wrote  I 
mean, changing it from a picture of a head and a question mark, as seen in the 
below link:     http://www.berthou.com/_img/pdf_sign.png     (Instead 
of this, I want to show my scanned signature)  --- On Sun, 6/21/09, Leonard 
Rosenthol  wrote:  From: Leonard Rosenthol Subject: Re: [iText-questions] Sign 
a PDF using a scanned signatureTo: "'Post all your questions about iText here'" 
Date: Sunday, June 21, 2009, 3:08 AM  What do you mean “change 
the signature object”?  Change it in what way?!?!?!   From: 
Suladna [mailto:sula...@yahoo.com] Sent: Saturday, June 20, 2009 6:01 AMTo: 
Post all your questions about iText hereSubject: Re: [iText-questions] Sign a 
PDF using a scanned signature   I'm not so high on this.. do 
you have any example on how to change the signature image using XObject? (or n2 
layer)/Sul --- On Fri, 6/19/09, Leonard Rosenthol  wrote:
From: Leonard Rosenthol Subject: Re: [iText-questions] Sign a PDF using a 
scanned signatureTo: "Post all your questions about iText here" Date: Friday, 
June 19, 2009, 9:38 AMBe aware that using the "n layers" models for 
signature appearances is NOT RECOMMENDED by Adobe (hasn't been since PDF 1.6). 
Instead we recommend you just use a simple XObject for whatever goes in 
there.-Original Message-From: Bruno Lowagie [mailto:br...@lowagie.com] 
Sent: Friday, June 19, 2009 9:33 AMTo: Post all your questions about iText 
hereSubject: Re: [iText-questions] Sign a PDF using a scanned signatureSuladna 
wrote:> Hi!>  > I have read the "How to sign a PDF using iText 
and iTextSharp" and have > succesfully signed a PDF document through 
iText.>  > But I have not succeeded to sign using a scanned 
signature (an image), > something which can be done in Adobe Acrobat. Is it 
possible to do this > using iText?You   need to change the n2 layer in the 
appearance.It's possible, but there's no documentation available on how to do 
this.br,Bruno--Crystal
 Reports - New Free Runtime and 30 Day TrialCheck out the new simplified 
licensing option that enables unlimitedroyalty-free distribution of the report 
engine for externally facing server and web 
deployment.http://p.sf.net/sfu/businessobjects___iText-questions
 mailing 
listitext-questi...@lists.sourceforge..nethttps://lists.sourceforge.net/lists/listinfo/itext-questionsBuy
 the iText book: http://www.1t3xt.com/docs/book.phpCheck 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/--Crystal
 Reports - New Free Runtime and 30 Day TrialCheck out the new simplified 
licensing option that enables unlimitedroyalty-free distribution of the report 
engine for externally facing server and web 
deployment.http://p.sf.net/sfu/businessobjects___iText-questions
 mailing 
listitext-questi...@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/itext-questionsBuy
 the iText book: http://www..1t3xt.com/docs/book.phpCheck 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/  
 -Inline Attachment Follows-  
--Are
 you an open source citizen? Join us for the Open Source Bridge 
conference!Portland, OR, June 17-19. Two days of sessions, one day of 
unconference: $250.Need another reason to go? 24-hour hacker lounge. Register 
today!http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org-Inline
 Attachment Follows-  
___iText-questions mailing 
listitext-questi...@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/itext-questionsBuy
 the iText book: http://www.1t3xt.com/docs/book.phpCheck 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/  
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
iText-questions mailing list
iTex

Re: [iText-questions] Where is iText In Action Code Samples Zip File?

2009-06-22 Thread 1T3XT info
Alexis Pigeon wrote:
> Hi Efrain,
> 
> 2009/6/22 Carballo, Efrain  >
> 
> Hi,
> 
>  I purchased the book but I cannot find the Zip file containing all
> the code samples in the book.  Can someone point me to the location
> of this file?  Thanks.
> 
> AFAIK, there's no archive containing all the examples from the book. 

Yes, there is.
Since all examples were put in the SVN repository at SourceForge,
you can go to: http://itext.svn.sourceforge.net/viewvc/itext/examples/
and download a GNU tarball. This will have all the book examples and
much more.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/


Re: [iText-questions] Where is iText In Action Code Samples Zip File?

2009-06-22 Thread Alexis Pigeon
2009/6/23 1T3XT info 

> Alexis Pigeon wrote:
> > Hi Efrain,
> >
> > 2009/6/22 Carballo, Efrain  > >
> >
> > Hi,
> >
> >  I purchased the book but I cannot find the Zip file containing all
> > the code samples in the book.  Can someone point me to the location
> > of this file?  Thanks.
> >
> > AFAIK, there's no archive containing all the examples from the book.
>
> Yes, there is.


D'oh!

Since all examples were put in the SVN repository at SourceForge,
> you can go to: http://itext.svn.sourceforge.net/viewvc/itext/examples/
> and download a GNU tarball. This will have all the book examples and
> much more.
>

Good to know that feature of ViewVC! I'd never seen it before...

Cheers,
alexis
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/