Re: [iText-questions] OTF and PFM fonts not embedding in existing PDF

2010-03-17 Thread Arindam Ray
Hi,
I have partially solved my issue of embedding the fonts.

For future reference of others am positing the steps I used for debugging
OTF fonts.
1.I downloaded PDF Vole from the below link
http://java.net/project/pdf-vole-pdf-debugger-and-analyzer-0.
   This application shows the internal structure of a PDF document.
2 .From the structure I found that for otf files we need to add a extra
entry in the font file for SUB_TYPE for eg for Type1 it is Type1C in the
font file.

Adding this parameter resulted in otf files being embedded correctly.

But I am stuck with pfm/pfb files, there it needs to be 3 length parameters
namely length1/length2/length3
These parameters denotes the clear text portion,encrypted portion and the
fixed content portion respectively of the font file.

But in Itext I am not able to find the values of these parameters. Any help
or guidance would be very much appreciated.

Thanks
Arindam

On Mon, Mar 15, 2010 at 2:14 PM, Arindam Ray rubai4...@gmail.com wrote:

 Hi
 Thanks for your prompt reply ..

 I went through the PDF Reference document for Text i.e Chapter 5.
 I found that in the font dictionary for streams there are 3
 different lengths that needs to be specified for fixed content and encrypted
 contents for type 1 fonts.

 But I have no clue as to how to find these lengths using iText.
 If you could please point me to the right direction it would be very
 helpful.

 Thanks
 Arindam



 On Mon, Mar 15, 2010 at 1:03 PM, 1T3XT info i...@1t3xt.info wrote:

 Arindam Ray wrote:
  Hi,
  I am trying to embed otf and pfm fonts in existing PDF files.
  I followed the example as given in EmbedFontPostFacto
 
  Though the example works perfectly for ttf files.

 Correct, the example assumes you're using a TTF font.
 That's why it's an example, not the full solution.

  In case of otf/pfm the
  font file is getting embedded but while opening the
  PDF it gives an error message Cannot extract the embedded font CMR10
  Some characters maynot be displayed properly
 
  Any help regarding this issue would be most appreciated.

 If you want to know the difference between embedding a
 TTF font post facto and embedding a Type 1 font, you can
 find all the information you need in the PDF reference.


 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 iText-questions mailing list
 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/




 --
 ARINDAM RAY




-- 
ARINDAM RAY
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
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] FontSelector vs FontMapper

2010-03-17 Thread Priya Mandawat
Hi,  I'm new to iText so please bear with me if this is a dumb question. 
I need to create pdf files in different languages (depending on the user's 
locale). I looked around to see how it's done and I see the following
1. examples using the FontSelector class, inserting fonts in the appropriate 
order and then processing the text to be rendered against it.
2. examples using the FontMapper/DefaultFontMapper to provide the pdf font for 
a given awt font.
My question is: What is the difference between the 2 approaches, or when should 
either be used over the other?
As a follow up, I tried using the latter and was running into problems with 
fetching the dir (that contains the fonts) to be passed to the 
defaultFontMapper.insertDirectory from my jar file. Below is the code snippet:
// The fonts are under /iText/fonts in the jarUrl url 
= getClass().getResource(/iText/fonts);
//This yields the url://x-transient://365/iText/fonts, which is invalid
// Hence, this does nothing...defaultFontMapper.insertDirectory(new File(url));
What is the right way to do this?
Help deeply appreciated!
Thanks,Priya





  --
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
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] URL to PDF

2010-03-17 Thread Joe Hradnansky
I need to run an application from a webserver, and have it format a custom HTML 
page (different page per user), then generate a PDF on the client workstation.

Will ITextSharp allow me to do that ?



  --
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
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] Adding hyperlinks/image to a layer

2010-03-17 Thread basscomp10

Hi,

I am using itextsharp referenced in VB.NET. I'll appreciate a response even
if written in Java. Is there a way to add hyperlinked text or hyperlinked
images to a layer? Text works just fine like this:

Dim not_printed As iTextSharp.text.pdf.PdfLayer = New
iTextSharp.text.pdf.PdfLayer(not printed  i.ToString, stamp.Writer)
not_printed.OnPanel = False
not_printed.SetPrint(Print, False)
over.BeginLayer(not_printed)
'iTextSharp.text.pdf.ColumnText.ShowTextAligned(over,
iTextSharp.text.Element.ALIGN_CENTER, New iTextSharp.text.Phrase(DON'T
PRINT THIS!), 520, 10, 0)

Thanks!

-- 
View this message in context: 
http://old.nabble.com/Adding-hyperlinks-image-to-a-layer-tp27921990p27921990.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
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] FontSelector vs FontMapper

2010-03-17 Thread 1T3XT info
Priya Mandawat wrote:
 I need to create pdf files in different languages (depending on the 
 user's locale). I looked around to see how it's done and I see the following

If you create a PDF using iText's high level classes (Paragraph,
PdfPTable, ColumnText,...), you'll need instances of the font class
com.itextpdf.text.Font and you'll have to look at:

 1. examples using the FontSelector class, inserting fonts in the 
 appropriate order and then processing the text to be rendered against it.

If you create a PDF using Java's Graphics2D (using drawString()), you
need instances of the font class java.awt.Font and you should look at:

 2. examples using the FontMapper/DefaultFontMapper to provide the pdf 
 font for a given awt font.
 
 My question is: What is the difference between the 2 approaches, or when 
 should either be used over the other?

You should prefer 1.
Because if you use 2., you'll have to take many different things into
account (this is explained in chapter 14 of the second edition of iText
in Action, but this chapter isn't available yet). As a newbie, it will
be hard to understand all the issues you can encounter with Graphics2D
if you don't have any documentation.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
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] Convert pdf to pdf/a

2010-03-17 Thread Shervin Asgari
Hello.

Is there a way to convert existing PDF to PDF/A using iText?
I know you can create PDF/A, but unsure about converting existing.

-- 
Shervin Asgari
Java faggruppeleder / Systemutvikler
Redpill Linpro AS - Changing the game
Mobil:   +47 918 64 148


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
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] Convert pdf to pdf/a

2010-03-17 Thread Leonard Rosenthol
No, there is not.

-Original Message-
From: Shervin Asgari [mailto:sher...@redpill-linpro.com] 
Sent: Wednesday, March 17, 2010 11:54 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Convert pdf to pdf/a

Hello.

Is there a way to convert existing PDF to PDF/A using iText?
I know you can create PDF/A, but unsure about converting existing.

-- 
Shervin Asgari
Java faggruppeleder / Systemutvikler
Redpill Linpro AS - Changing the game
Mobil:   +47 918 64 148


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
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/

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
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] Convert pdf to pdf/a

2010-03-17 Thread Shervin Asgari
Hi.

Thanks for quick response.
Why isn't it possible? Any plans to do this in later release?

Shervin

Leonard Rosenthol wrote:
 No, there is not.

 -Original Message-
 From: Shervin Asgari [mailto:sher...@redpill-linpro.com] 
 Sent: Wednesday, March 17, 2010 11:54 AM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] Convert pdf to pdf/a

 Hello.

 Is there a way to convert existing PDF to PDF/A using iText?
 I know you can create PDF/A, but unsure about converting existing.

   

-- 
Shervin Asgari
Java faggruppeleder / Systemutvikler
Redpill Linpro AS - Changing the game
Mobil:   +47 918 64 148


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
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] RTL Issue in Signature Appearance

2010-03-17 Thread Paulo Soares
You can set the font and the text in PdfSignatureAppearance but don't forget to 
set PdfSignatureAppearance.RunDirection. If you want to draw everything 
yourself that's standard use of ColumnText for Arabic and there are a ton of 
examples about that.

Paulo


From: Faisal Raza [vuc...@gmail.com]
Sent: Tuesday, March 16, 2010 3:26 PM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] RTL Issue in Signature Appearance

Hi,
I am exploring itextsharp.dll and evaluating it for pdf signing and 
manipulation.
I want to use Arabic font in my Signature Appearance but unable to do that.
Can you please guide me that how I can set Arabic font and RTL in signature 
Appearance.
 The code I am trying is bellow.

PdfReader reader = new PdfReader(fileName)
PdfStamper stp = PdfStamper.CreateSignature(reader, os, '\0', null, true);
sap.SetVisibleSignature(myRect, 1, mySignatureName);
sap.Acro6Layers = true;
PdfTemplate n2 = sap.GetLayer(2);
PdfTemplate t = n2.CreateTemplate(width, height);;
Font font = FontFactory.GetFont(fontName, 
BaseFont.IDENTITY_H,BaseFont.EMBEDDED, 12);
BaseFont bf = font.GetCalculatedBaseFont(false);
t.BeginText();
t.SetFontAndSize(bf, mySize);
t.ShowText(s);
t.EndText();
Image img = Image.GetInstance(t);
n2.AddImage(img);
sap.SignDate = DateTime.Now;
sap.Reason = myReason;
sap.Location = myLocation;
sap.Contact = myContactInfo;

Note: when I use above code the resultant appearance not made ligatures.

please guide me if I am doing wrong

Best regards,
Rana


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.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
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] Convert pdf to pdf/a

2010-03-17 Thread Leonard Rosenthol
Because it's a hard problem that requires a LOT of in-depth understanding of 
PDF (and PDF/A).

You COULD use iText's lowest level object APIs combined with various other Java 
libraries to do it - but there isn't anything available out of the box.   

Leonard

-Original Message-
From: Shervin Asgari [mailto:sher...@redpill-linpro.com] 
Sent: Wednesday, March 17, 2010 12:25 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Convert pdf to pdf/a

Hi.

Thanks for quick response.
Why isn't it possible? Any plans to do this in later release?

Shervin

Leonard Rosenthol wrote:
 No, there is not.

 -Original Message-
 From: Shervin Asgari [mailto:sher...@redpill-linpro.com] 
 Sent: Wednesday, March 17, 2010 11:54 AM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] Convert pdf to pdf/a

 Hello.

 Is there a way to convert existing PDF to PDF/A using iText?
 I know you can create PDF/A, but unsure about converting existing.

   

-- 
Shervin Asgari
Java faggruppeleder / Systemutvikler
Redpill Linpro AS - Changing the game
Mobil:   +47 918 64 148


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
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/

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
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] How to get Vertical position ???

2010-03-17 Thread Neha Yadav

hello,
 I have defined 2 columns to display the data. Data is coming from the
text file. When I am trying to get the vertical position I get the position
of last line of a page now I want to get the vertical position after every
line. 

help me to fix this..

Thank You!




-- 
View this message in context: 
http://old.nabble.com/How-to-get-Vertical-position-tp27930868p27930868.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
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] AGPL Licensing again

2010-03-17 Thread Frank Morawietz
Hi,

I have two questions regarding the license for iTextSharp. Both center around 
the following sentence from the iText website:

Buying such a license is mandatory as soon as you develop commercial 
activities involving the iText software without disclosing the source code of 
your own applications.

We are using iTextSharp in the next version of our application which will be 
available soon on our homepage for free (yes, that's free as in 'free beer'). 
Nevertheless, I'm working for a company - we have to earn some money ;-) So, 
the software produces, among other things, a PDF with a list of things which 
you can order from us. Does that constitute a 'commercial activity? I fear it 
does, even if the software itself is not commercial.

Since we distribute a non encrypted .NET client, it is very easy to decompile 
and even generate  a visual studio project from the .exe. Does that satisfy 
'disclosing the source code'?

Sorry for splitting hairs, but I'm no lawyer, maybe somebody else has an idea.

As an aside, the version to be released uses iTextSharp 4.1.6.  I just want to 
be prepared ...

Thanks,

-- frank

Dr. Frank Morawietz
Lead Software Architect

MHH Solartechnik GmbH
Welzenwiler Str. 5
D-72074 Tübingen

Fon +49 7071 98987-86
Fax +49 7071 98987-20
mailto:morawi...@mhh-solartechnik.demailto:leipp...@mhh-solartechnik.de
www.mhh-solartechnik.dehttp://www.mhh-solartechnik.de

Registergericht: Amtsgericht Stuttgart, HRB 381351
Geschäftsführer: Günter Haug

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
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] How to get Vertical position ???

2010-03-17 Thread Wain, Matthew
float verticalPosition = writer.getVerticalPosition(true);


Like that.. 'If' that's what your after?

-Original Message-
From: Neha Yadav [mailto:neha.ya...@eworks.in]
Sent: 17 March 2010 11:47
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] How to get Vertical position ???



hello,
 I have defined 2 columns to display the data. Data is coming from the
text file. When I am trying to get the vertical position I get the position
of last line of a page now I want to get the vertical position after every
line. 

help me to fix this..

Thank You!




-- 
View this message in context: 
http://old.nabble.com/How-to-get-Vertical-position-tp27930868p27930868.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
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/

Land Registry's House Price Index is now live. www.landregistry.gov.uk

If you have received this e-mail and it was not intended for you, please let us 
know, and then delete it. Please treat our communications in confidence, as you 
would expect us to treat yours. Land Registry checks all mail and attachments 
for known viruses, however, you are advised that you open any attachments at 
your own risk.



The original of this email was scanned for viruses by the Government Secure 
Intranet virus scanning service supplied by CableWireless in partnership with 
MessageLabs. (CCTM Certificate Number 2009/09/0052.) On leaving the GSi this 
email was certified virus free.
Communications via the GSi may be automatically logged, monitored and/or 
recorded for legal purposes.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
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] test of signed pdf

2010-03-17 Thread Pavol Behul
Hello,

is som simple way to find out, if pdf is digitally signed ? (some method 
in PdfReader or something like that..)

Thnx..

Regards,
Pavol Behul

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
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] test of signed pdf

2010-03-17 Thread Paulo Soares
AcroFields has methods for that.

Paulo


From: Pavol Behul [pbe...@gmail.com]
Sent: Wednesday, March 17, 2010 1:48 PM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] test of signed pdf

Hello,

is som simple way to find out, if pdf is digitally signed ? (some method
in PdfReader or something like that..)

Thnx..

Regards,
Pavol Behul

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
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 é 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.


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
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] Convert pdf to pdf/a

2010-03-17 Thread Mark Storer
To expand on this a bit, some PDFs would be easier to convert than
others.  But while there are no plans to include this feature, plans
change quickly when folks wave some money at iTextSoftware.com.

It would be cheaper to buy a copy of Acrobat Pro.

Other Considerations:
There are two levels of PDF/A compliance, PDF/A-1a, and PDF/A-1b.  b
is *relatively* easy (for someone with the Proper Skills, but still far
from trivial).  PDF/A-1a requires an /understanding/ of the document,
and a description of its logical structure written into the PDF that is
all but impossible outside the application that produced it in the first
place (without human intervention, at which point you need a GUI, and
might as well use Acrobat again).

Most situations are happy with PDF/A-1b.  It's my understanding that
PDF/A-1a is quite rare, though I'm not exactly in the business of
surveying the kinds of PDFs folks are producing.  There's probably
someone at Adobe who does just that, and Leonard might know them.  But
that sort of data could easily be considered a Competitive Advantage and
kept under lock and key.



--Mark Storer
  Senior Software Engineer
  Cardiff.com
 
#include disclaimer
typedef std::disclaimerCardiff Discard;

 -Original Message-
 From: Leonard Rosenthol [mailto:lrose...@adobe.com]
 Sent: Wednesday, March 17, 2010 4:43 AM
 To: Post all your questions about iText here
 Subject: Re: [iText-questions] Convert pdf to pdf/a
 
 Because it's a hard problem that requires a LOT of in-depth
understanding
 of PDF (and PDF/A).
 
 You COULD use iText's lowest level object APIs combined with various
other
 Java libraries to do it - but there isn't anything available out of
the
 box.
 
 Leonard
 
 -Original Message-
 From: Shervin Asgari [mailto:sher...@redpill-linpro.com]
 Sent: Wednesday, March 17, 2010 12:25 PM
 To: Post all your questions about iText here
 Subject: Re: [iText-questions] Convert pdf to pdf/a
 
 Hi.
 
 Thanks for quick response.
 Why isn't it possible? Any plans to do this in later release?
 
 Shervin
 
 Leonard Rosenthol wrote:
  No, there is not.
 
  -Original Message-
  From: Shervin Asgari [mailto:sher...@redpill-linpro.com]
  Sent: Wednesday, March 17, 2010 11:54 AM
  To: itext-questions@lists.sourceforge.net
  Subject: [iText-questions] Convert pdf to pdf/a
 
  Hello.
 
  Is there a way to convert existing PDF to PDF/A using iText?
  I know you can create PDF/A, but unsure about converting existing.
 
 
 
 --
 Shervin Asgari
 Java faggruppeleder / Systemutvikler
 Redpill Linpro AS - Changing the game
 Mobil:   +47 918 64 148
 
 


--
 
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 iText-questions mailing list
 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/
 


--
 
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 iText-questions mailing list
 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/
 
 
 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 9.0.733 / Virus Database: 271.1.1/2732 - Release Date:
03/17/10
 00:33:00

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
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: 

Re: [iText-questions] How to get Vertical position ???

2010-03-17 Thread Mark Storer
If he's using a ColumnText (based on his 2 columns to display the data
comment), I don't think that'll work.

Hmmm... Ah!

PdfPageEvent.onGenericTag(writer, document, rect, string)

1) add a generic tag to every line of your text (tough if you don't know
where the line breaks will be).
2) register a PdfPageEvent handler that uses onGenericTag to determine
the vertical position. You won't even need getVerticalPosition (and I'm
not sure PdfWriter's position will have been updated at that point),
because onGenericTag is passed a Rectangle.

OR

PdfPageEvent.onParagraph[End](writer, document, float )

Ditto, without the need to tag your lines, but you lose some
resolution, being alerted at the paragraph level.


In either case, I recommend you extend PdfPageEventHelper, as it stubs
out all the events you're not interested in and only requires you to
override the ones you care about.

--Mark Storer
  Senior Software Engineer
  Cardiff.com
 
#include disclaimer
typedef std::disclaimerCardiff Discard;

 -Original Message-
 From: Wain, Matthew [mailto:matthew.w...@landregistry.gsi.gov.uk]
 Sent: Wednesday, March 17, 2010 5:24 AM
 To: Post all your questions about iText here
 Subject: Re: [iText-questions] How to get Vertical position ???
 
 float verticalPosition = writer.getVerticalPosition(true);
 
 
 Like that.. 'If' that's what your after?
 
 -Original Message-
 From: Neha Yadav [mailto:neha.ya...@eworks.in]
 Sent: 17 March 2010 11:47
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] How to get Vertical position ???
 
 
 
 hello,
  I have defined 2 columns to display the data. Data is coming from
the
 text file. When I am trying to get the vertical position I get the
 position
 of last line of a page now I want to get the vertical position after
every
 line.
 
 help me to fix this..
 
 Thank You!
 
 
 
 
 --
 View this message in context:
http://old.nabble.com/How-to-get-Vertical-
 position-tp27930868p27930868.html
 Sent from the iText - General mailing list archive at Nabble.com.
 
 


--
 
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 iText-questions mailing list
 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/
 
 Land Registry's House Price Index is now live. www.landregistry.gov.uk
 
 If you have received this e-mail and it was not intended for you,
please
 let us know, and then delete it. Please treat our communications in
 confidence, as you would expect us to treat yours. Land Registry
checks
 all mail and attachments for known viruses, however, you are advised
that
 you open any attachments at your own risk.
 
 
 
 The original of this email was scanned for viruses by the Government
 Secure Intranet virus scanning service supplied by CableWireless in
 partnership with MessageLabs. (CCTM Certificate Number 2009/09/0052.)
On
 leaving the GSi this email was certified virus free.
 Communications via the GSi may be automatically logged, monitored
and/or
 recorded for legal purposes.
 


--
 
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 iText-questions mailing list
 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/
 
 
 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 9.0.733 / Virus Database: 271.1.1/2732 - Release Date:
03/17/10
 00:33:00

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net

Re: [iText-questions] Spam: URL to PDF

2010-03-17 Thread Mark Storer
Yes.  You have two options:

 

1) Use iText's built-in HTML-PDF converter.  I seriously doubt you'll
like the output though.  It doesn't support quite a few things... CSS
is the big one.

 

2) Generate a PDF directly from the app.  iText is capable of producing
both HTML and PDF (at the same time even), so if your webserver
application is still on the drawing board, I suggest you look at
generating your HTML with iText as well.

 

 

--Mark Storer

  Senior Software Engineer

  Cardiff.com

 

#include disclaimer

typedef std::disclaimerCardiff Discard;



From: Joe Hradnansky [mailto:joeh...@yahoo.com] 
Sent: Tuesday, March 16, 2010 8:40 AM
To: itext-questions@lists.sourceforge.net
Subject: Spam: [iText-questions] URL to PDF

 

I need to run an application from a webserver, and have it format a
custom HTML page (different page per user), then generate a PDF on the
client workstation.

 

Will ITextSharp allow me to do that ?

 

 

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.733 / Virus Database: 271.1.1/2732 - Release Date: 03/17/10
00:33:00


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
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] Spam: URL to PDF

2010-03-17 Thread Daniel Oliveras
To convert HTML pages to PDF you can use
wkhtmltopdfhttp://code.google.com/p/wkhtmltopdf/,
a command line utility that uses WebKit to render HTML page and convert it
to PDF.


2010/3/17 Mark Storer msto...@autonomy.com

  Yes.  You have two options:



 1) Use iText’s built-in HTML-PDF converter.  I seriously doubt you’ll like
 the output though.  It doesn’t support quite a few things… “CSS” is the big
 one.



 2) Generate a PDF directly from the app.  iText is capable of producing
 both HTML and PDF (at the same time even), so if your webserver application
 is still on the drawing board, I suggest you look at generating your HTML
 with iText as well.





 --Mark Storer

   Senior Software Engineer

   Cardiff.com



 #include disclaimer

 typedef std::disclaimerCardiff Discard;
   --

 *From:* Joe Hradnansky [mailto:joeh...@yahoo.com]
 *Sent:* Tuesday, March 16, 2010 8:40 AM
 *To:* itext-questions@lists.sourceforge.net
 *Subject:* Spam: [iText-questions] URL to PDF



 I need to run an application from a webserver, and have it format a
 custom HTML page (different page per user), then generate a PDF on the
 client workstation.



 Will ITextSharp allow me to do that ?





 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 9.0.733 / Virus Database: 271.1.1/2732 - Release Date: 03/17/10
 00:33:00



 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 iText-questions mailing list
 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/

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
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] Adding hyperlinks/image to a layer

2010-03-17 Thread Mark Storer
Yes there is.

First, images /should/ work exactly the same was as text.  If it
doesn't, that's a bug and should be reported as such (preferably with
some sample code).

Hyperlinks in PDF are annotations (like a button in this case) that
float over the page content.  Annotations can be members of a layer.  I
didn't know that until just now... ya learn something new every day.

PdfLayer layer = buildMyLayer();
PdfAnnotation link = buildMyLink();
link.setLayer( layer );

I'm pretty sure there's an example or two floating around that show how
to add a hyperlink over a given piece of text.

The link itself won't have an appearance, it has to float over text that
does.

NOTE:  If you just want the link text to not print, you're already
there.  There's nothing to see in the link annotation, and you can set
any annotation to don't print: annotation.setFlags( 0 ) (not hidden,
not printable).  If you want more control based on layers in general and
annotations in general, use setLayer().

--Mark Storer
  Senior Software Engineer
  Cardiff.com
 
#include disclaimer
typedef std::disclaimerCardiff Discard;

 -Original Message-
 From: basscomp10 [mailto:basscom...@yahoo.com]
 Sent: Tuesday, March 16, 2010 10:46 AM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] Adding hyperlinks/image to a layer
 
 
 Hi,
 
 I am using itextsharp referenced in VB.NET. I'll appreciate a response
 even
 if written in Java. Is there a way to add hyperlinked text or
hyperlinked
 images to a layer? Text works just fine like this:
 
 Dim not_printed As iTextSharp.text.pdf.PdfLayer = New
 iTextSharp.text.pdf.PdfLayer(not printed  i.ToString, stamp.Writer)
 not_printed.OnPanel = False
 not_printed.SetPrint(Print, False)
 over.BeginLayer(not_printed)
 'iTextSharp.text.pdf.ColumnText.ShowTextAligned(over,
 iTextSharp.text.Element.ALIGN_CENTER, New
iTextSharp.text.Phrase(DON'T
 PRINT THIS!), 520, 10, 0)
 
 Thanks!
 
 --
 View this message in context: http://old.nabble.com/Adding-hyperlinks-
 image-to-a-layer-tp27921990p27921990.html
 Sent from the iText - General mailing list archive at Nabble.com.
 
 


--
 
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 iText-questions mailing list
 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/
 
 
 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 9.0.733 / Virus Database: 271.1.1/2732 - Release Date:
03/17/10
 00:33:00

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
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] Spam: URL to PDF

2010-03-17 Thread Mark Storer
And with much better fidelity than iText's.  Nice.

 

--Mark Storer

  Senior Software Engineer

  Cardiff.com

 

#include disclaimer

typedef std::disclaimerCardiff Discard;



From: Daniel Oliveras [mailto:dolive...@gmail.com] 
Sent: Wednesday, March 17, 2010 10:06 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Spam: URL to PDF

 

To convert HTML pages to PDF you can use wkhtmltopdf
http://code.google.com/p/wkhtmltopdf/ , a command line utility that
uses WebKit to render HTML page and convert it to PDF.

 

2010/3/17 Mark Storer msto...@autonomy.com

Yes.  You have two options:

 

1) Use iText's built-in HTML-PDF converter.  I seriously doubt you'll
like the output though.  It doesn't support quite a few things... CSS
is the big one.

 

2) Generate a PDF directly from the app.  iText is capable of producing
both HTML and PDF (at the same time even), so if your webserver
application is still on the drawing board, I suggest you look at
generating your HTML with iText as well.

 

 

--Mark Storer

  Senior Software Engineer

  Cardiff.com

 

#include disclaimer

typedef std::disclaimerCardiff Discard;



From: Joe Hradnansky [mailto:joeh...@yahoo.com] 
Sent: Tuesday, March 16, 2010 8:40 AM
To: itext-questions@lists.sourceforge.net
Subject: Spam: [iText-questions] URL to PDF

 

I need to run an application from a webserver, and have it format a
custom HTML page (different page per user), then generate a PDF on the
client workstation.

 

Will ITextSharp allow me to do that ?

 

 

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.733 / Virus Database: 271.1.1/2732 - Release Date: 03/17/10
00:33:00



--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
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/

 

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.733 / Virus Database: 271.1.1/2732 - Release Date: 03/17/10
00:33:00

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
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] getting signed version (revision) of pdf document

2010-03-17 Thread Татьяна Василькова
Hello!

Here is my problem.
I have a pdf document, signed by three persons. In my program I need to
recreate from the document its first and second signed versions (revisions).

In Adobe Acrobat 9 it is possible to do for each revision by checking Click
to view this version on Signatures panel.
Is there any correct way to get document revisions from final document in
java-program?

Thanks )
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
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] getting signed version (revision) of pdf document

2010-03-17 Thread 1T3XT info
??? ?? wrote:
 Hello!
 
 Here is my problem.
 I have a pdf document, signed by three persons. In my program I need to 
 recreate from the document its first and second signed versions 
 (revisions).
 In Adobe Acrobat 9 it is possible to do for each revision by checking 
 Click to view this version on Signatures panel.
 Is there any correct way to get document revisions from final document 
 in java-program?

It's all explained in the book.
See also the method extractFirstRevision() in this example:
http://itextpdf.com/examples/index.php?page=exampleid=222
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
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] FontSelector vs FontMapper

2010-03-17 Thread Priya Mandawat
I tried using the FontSelector approach but can't see to get the Indic/Arabic 
pdfs to render appropriately. Using the same fonts with the FontMapper works. 
Is this a limitation with FontSelectors or am I missing something?

Thanks,
Priya

--- On Tue, 3/16/10, Priya Mandawat chotat...@yahoo.com wrote:

From: Priya Mandawat chotat...@yahoo.com
Subject: FontSelector vs FontMapper
To: itext-questions@lists.sourceforge.net
Date: Tuesday, March 16, 2010, 10:05 PM

Hi,  I'm new to iText so please bear with me if this is a dumb question. 
I need to create pdf files in different languages (depending on the user's 
locale). I looked around to see how it's done and I see the following
1. examples using the FontSelector class, inserting fonts in the appropriate 
order and then processing the text to be rendered against it.
2. examples using the FontMapper/DefaultFontMapper to provide the pdf font for 
a given awt font.
My question is: What is the difference between the 2 approaches, or when should 
either be used over the other?
As a follow up, I tried using the latter and was running into problems with 
fetching the dir (that contains the fonts) to be passed to the
 defaultFontMapper.insertDirectory from my jar file. Below is the code snippet:
// The fonts are under /iText/fonts in the jarUrl url 
= getClass().getResource(/iText/fonts);
//This yields the url://x-transient://365/iText/fonts, which is invalid
// Hence, this does nothing...defaultFontMapper.insertDirectory(new File(url));
What is the right way to do this?
Help deeply appreciated!
Thanks,Priya







  


  --
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
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] FontSelector vs FontMapper

2010-03-17 Thread 1T3XT info
Priya Mandawat wrote:
 I tried using the FontSelector approach but can't see to get the 
 Indic/Arabic pdfs to render appropriately. Using the same fonts with the 
 FontMapper works. Is this a limitation with FontSelectors or am I 
 missing something?

You are missing something.
Read chapter 9 of the first edition of iText in Action.
It's explained there.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
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] XMP Metadata Not Predefined Error

2010-03-17 Thread Nirmal Fernando
Hi,

I created XMP metadata for the basic metadata, using iText, because PDF/A-1
requires XMP metadata.

I verified this PDF with both pdfaPilot2 and Adobe Preflight, and it showed
the following error:

*XMP Property not predefined and no extension schema present.*

Can someone help me to fix this using iText?

Thanks in advance!!

-- 
Best Regards,
Nirmal

C.S.Nirmal J. Fernando
Department of Computer Science  Engineering,
Faculty of Engineering,
University of Moratuwa,
Sri Lanka.
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
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] XMP Metadata Not Predefined Error

2010-03-17 Thread Leonard Rosenthol
Perhaps you added some XMP that is not part of a standard schema and you didn't 
include an extension schema as required by PDF/A.

From: Nirmal Fernando [mailto:nirmal070...@gmail.com]
Sent: Thursday, March 18, 2010 6:09 AM
To: itext-questions
Subject: [iText-questions] XMP Metadata Not Predefined Error

Hi,

I created XMP metadata for the basic metadata, using iText, because PDF/A-1 
requires XMP metadata.

I verified this PDF with both pdfaPilot2 and Adobe Preflight, and it showed the 
following error:

XMP Property not predefined and no extension schema present.

Can someone help me to fix this using iText?

Thanks in advance!!

--
Best Regards,
Nirmal

C.S.Nirmal J. Fernando
Department of Computer Science  Engineering,
Faculty of Engineering,
University of Moratuwa,
Sri Lanka.
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
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/