[iText-questions] How to build itext-hyph-xml.dll?

2011-09-14 Thread pdfengine
I need to modify some language patterns in this dll. Where is the source code
to build this dll?

--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/How-to-build-itext-hyph-xml-dll-tp3813784p3813784.html
Sent from the iText - General mailing list archive at Nabble.com.

--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


[iText-questions] Need demo for iText

2011-09-14 Thread Sagar B
Hello,

I am interested to purchase your product for my client. PDF has XFA form
with MAC MINI My PDF has approx 100 fields and size is more then 10MB. Is
this possible with your product? Also can you provide me demo to test my
pdf?

 

Regards,

Sagar

--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 ___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

[iText-questions] Change Image From Pdf Input File

2011-09-14 Thread pradip
I want to change Image from my pdf file .
please help me


--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Change-Image-From-Pdf-Input-File-tp3812020p3812020.html
Sent from the iText - General mailing list archive at Nabble.com.

--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] sign a pdf file with a smartcard

2011-09-14 Thread andy2011
No, it is PKCS#15 Token.  The signcard does not come with a driver :-( any
idea??


BTW: your nice sample: *How to sign with a smartcard using an external
signature dictionary with iTextSharp and .NET 2.0*does not work with the
latest iTextSharp library. Do u have an update of your sample??

regards

Andy


--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/sign-a-pdf-file-with-a-smartcard-tp3809767p3812170.html
Sent from the iText - General mailing list archive at Nabble.com.

--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] TextField Font

2011-09-14 Thread Leonard Rosenthol
9 is about fonts.

You need to read about Annotations and Form Fields.

You also need a good tool for exploring the PDF structure to see what is in the 
PDF and how it matches the spec (and the code in iText).

Leonard

From: Khatri Anand mailto:anand.khatr...@gmail.com>>
Reply-To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Date: Wed, 14 Sep 2011 06:17:07 -0700
To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Subject: Re: [iText-questions] TextField Font

Hello sir,

 I read 9.5->9.9 but I can't got the solution for that yet.
 so please sir help me programmatic

 thanks & regards.

On Wed, Sep 14, 2011 at 5:04 AM, Leonard Rosenthol 
mailto:lrose...@adobe.com>> wrote:
Sounds like you are trying to understanding PDF w/o having read ISO 32000-1 – 
not possible.   Grab yourself a copy and start reading the relevant sections.

From: Khatri Anand mailto:anand.khatr...@gmail.com>>
Reply-To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Date: Wed, 14 Sep 2011 04:47:15 -0700

To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Subject: Re: [iText-questions] TextField Font

Hello sir,

 1 more problem about the Textfield that
  How can I get the textfield backgroudcolor, Border style, Border Color, 
Border width and textColor?

  thanks & regards,


On Wed, Sep 14, 2011 at 4:34 AM, Khatri Anand 
mailto:anand.khatr...@gmail.com>> wrote:
Hello sir,

 Now I use following line of code...

PdfObject da = itemDict.get(PdfName.DA);
 StringTokenizer st = new StringTokenizer(da.toString(), " ");
 String fontRef = st.nextToken();
 PdfName fontRefName = new PdfName(PdfName.decodeName(fontRef));
 PdfDictionary font = (PdfDictionary) DR.get(PdfName.FONT);
 PRIndirectReference fontIndRef = (PRIndirectReference) 
font.get(fontRefName);
 BaseFont baseFont = BaseFont.createFont(fontIndRef);


But I can't get the output...
so please sir point me out that where I am wrong in above code.


Thanks & regards,


On Wed, Sep 14, 2011 at 4:03 AM, Khatri Anand 
mailto:anand.khatr...@gmail.com>> wrote:
Thank you very much sir


On Wed, Sep 14, 2011 at 3:56 AM, Leonard Rosenthol 
mailto:lrose...@adobe.com>> wrote:
ISO 32000-1:2008, 12.7.2, Table 218.

From: Khatri Anand mailto:anand.khatr...@gmail.com>>
Reply-To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Date: Wed, 14 Sep 2011 03:44:43 -0700

To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Subject: Re: [iText-questions] TextField Font

Sorry I can not understand

 what do you mean by DR?

Thanks & Regards

On Wed, Sep 14, 2011 at 3:36 AM, Leonard Rosenthol 
mailto:lrose...@adobe.com>> wrote:
DR for Default Resources.

From: Khatri Anand mailto:anand.khatr...@gmail.com>>
Reply-To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Date: Wed, 14 Sep 2011 00:18:09 -0700
To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Subject: [iText-questions] TextField Font

Hello sir,

 I got the TextField Fontreference name by following line of code

PdfObject da = dict.get(PdfName.DA);
System.out.println("object  "+da);
StringTokenizer st = new StringTokenizer(da.toString(), 
" ");
String fontRef = st.nextToken();
PdfName fontRefName = new 
PdfName(PdfName.decodeName(fontRef));

I got /Cour as a output...

by this I got the Font reference so how can I get the Font name?
e.g. /Cour I get COURIER


Thanks & regards
--
Anand Khatri
Software Developer

ZEITECH Solutions,
Ahmedabad.
Ph  : +91 808071




--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php



--
Anand Khatri
Software Developer

ZEITECH Solutions,
Ahmedabad.
Ph  : +91 808071




--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/s

Re: [iText-questions] TextField Font

2011-09-14 Thread Khatri Anand
Hello sir,

 I read 9.5->9.9 but I can't got the solution for that yet.
 so please sir help me programmatic

 thanks & regards.

On Wed, Sep 14, 2011 at 5:04 AM, Leonard Rosenthol wrote:

> Sounds like you are trying to understanding PDF w/o having read ISO 32000-1
> – not possible.   Grab yourself a copy and start reading the relevant
> sections.
>
> From: Khatri Anand 
> Reply-To: Post here 
> Date: Wed, 14 Sep 2011 04:47:15 -0700
>
> To: Post here 
> Subject: Re: [iText-questions] TextField Font
>
> Hello sir,
>
>  1 more problem about the Textfield that
>   How can I get the textfield backgroudcolor, Border style, Border Color,
> Border width and textColor?
>
>   thanks & regards,
>
>
> On Wed, Sep 14, 2011 at 4:34 AM, Khatri Anand wrote:
>
>> Hello sir,
>>
>>  Now I use following line of code...
>>
>> PdfObject da = itemDict.get(PdfName.*DA*);
>>*  *StringTokenizer st =* new* StringTokenizer(da.toString(), " "
>> );
>>*  *String fontRef = st.nextToken();
>>*  *PdfName fontRefName =* new* PdfName(PdfName.*decodeName*
>> (fontRef));
>>*  *PdfDictionary font = (PdfDictionary) DR.get(PdfName.*FONT*);
>> * *PRIndirectReference fontIndRef = (PRIndirectReference) font.
>> get(fontRefName);
>> * * BaseFont baseFont = BaseFont.*createFont*(fontIndRef);
>>
>>
>> But I can't get the output...
>> so please sir point me out that where I am wrong in above code.
>>
>>
>> Thanks & regards,
>>
>>
>> On Wed, Sep 14, 2011 at 4:03 AM, Khatri Anand 
>> wrote:
>>
>>> Thank you very much sir
>>>
>>>
>>> On Wed, Sep 14, 2011 at 3:56 AM, Leonard Rosenthol 
>>> wrote:
>>>
 ISO 32000-1:2008, 12.7.2, Table 218.

 From: Khatri Anand 
 Reply-To: Post here 
 Date: Wed, 14 Sep 2011 03:44:43 -0700

 To: Post here 
 Subject: Re: [iText-questions] TextField Font

 Sorry I can not understand

  what do you mean by DR?

 Thanks & Regards

 On Wed, Sep 14, 2011 at 3:36 AM, Leonard Rosenthol 
 wrote:

> DR for Default Resources.
>
> From: Khatri Anand 
> Reply-To: Post here 
> Date: Wed, 14 Sep 2011 00:18:09 -0700
> To: Post here 
> Subject: [iText-questions] TextField Font
>
> Hello sir,
>
>  I got the TextField Fontreference name by following line of code
>
> PdfObject da = dict.get(PdfName.DA);
> System.out.println("object  "+da);
> StringTokenizer st = new
> StringTokenizer(da.toString(), " ");
> String fontRef = st.nextToken();
>
> PdfName fontRefName = new
> PdfName(PdfName.decodeName(fontRef));
>
> I got /Cour as a output...
>
> by this I got the Font reference so how can I get the Font name?
> e.g. /Cour I get COURIER
>
>
> Thanks & regards
> --
> *Anand Khatri*
> Software Developer
>
> ZEITECH Solutions,
> Ahmedabad.
> Ph  : *+91 808071**
> *
>
>
>
>
> --
> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
> Learn about the latest advances in developing for the
> BlackBerry® mobile platform with sessions, labs & more.
> See new tools and technologies. Register for BlackBerry® DevCon
> today!
> http://p.sf.net/sfu/rim-devcon-copy1
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> iText(R) is a registered trademark of 1T3XT BVBA.
> Many questions posted to this list can (and will) be answered with a
> reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples:
> http://itextpdf.com/themes/keywords.php
>



 --
 *Anand Khatri*
 Software Developer

 ZEITECH Solutions,
 Ahmedabad.
 Ph  : *+91 808071**
 *




 --
 BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
 Learn about the latest advances in developing for the
 BlackBerry® mobile platform with sessions, labs & more.
 See new tools and technologies. Register for BlackBerry® DevCon
 today!
 http://p.sf.net/sfu/rim-devcon-copy1
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions

 iText(R) is a registered trademark of 1T3XT BVBA.
 Many questions posted to this list can (and will) be answered with a
 reference to the iText book: 

Re: [iText-questions] Font embedded or Not

2011-09-14 Thread TvT
Hi,

i think it was a spelling mistake. What he meant was 'the font is embedded'
but the font descriptor is null.
Then you have a pdf which does not comply to the pdf spec. To quote the PDF
Spec:

"In PDF, the term font refers to a font dictionary, a PDF object that
identifies the font program and contains additional information about it.
There are several different font types, identified by the Subtype entry of
the font dictionary. For most font types, the font program itself is defined
in a separate font file, which may be either embedded in a PDF stream object
or obtained from an external source."

So the question should be (correct me i am wrong):
The font programm is embedded as an object stream but there is no font
dictionary - is there a way with iText to access/ find out the embedded
font?

Regards,
Tom

2011/9/14 Balder VC 

> What do you mean, 'the PDF is embedded'? The PDF you want to search in
> for a font is an attachment in another PDF?
>
> Then perhaps the PDF that is the container for the attachment has no
> fonts embedded as it will not show the fonts for the attachment.
>
> Font's don't have to be embedded in the PDF, then the viewer uses it's
> default fonts ...
> Perhaps provide the PDF you are talking about and you'll receive a
> better answer or read a bit in the PDF spec to learn about fonts&pdf
>
>
> Regards
> Balder
>
> On 09/14/2011 08:27 AM, Purushothaman Dhanapal wrote:
> > No. You are wrong.  The pdf is embedded ,though the font descriptor is
> > null . How to identify in this case.?
> >
> >
> >
> > *Thanks & Regards,*
> >
> > *Purushothaman.D*
> >
> > *From:*Leonard Rosenthol [mailto:lrose...@adobe.com]
> > *Sent:* Tuesday, September 13, 2011 4:11 PM
> > *To:* Post here
> > *Subject:* Re: [iText-questions] Font embedded or Not
> >
> >
> >
> > If there is no Font Descriptor, then it's NOT embedded!
> >
> >
> >
> > *From: *Purushothaman Dhanapal  > >
> > *Reply-To: *Post here  > >
> > *Date: *Tue, 13 Sep 2011 01:04:23 -0700
> > *To: *Post here  > >
> > *Subject: *Re: [iText-questions] Font embedded or Not
> >
> >
> >
> > Hi,
> >
> >
> >
> > I gone through the chapter that you have mentioned. In my case ,the PDF
> that I used doesn’t have FONTDESCRIPTOR and it is null.
> >
> >
> >
> > _Question is:_ How to identify if font is Embedded or Not for this PDF
> though the FONTDESCRIPTOR is null.  Please provide me the sample code in
> itextsharp.
> >
> >
> >
> >  *PdfDictionary* <
> http://api.itextpdf.com/itext/com/itextpdf/text/pdf/PdfDictionary.html>
> desc = font.getAsDict*(**PdfName* <
> http://api.itextpdf.com/itext/com/itextpdf/text/pdf/PdfName.html
> >.FONTDESCRIPTOR*)*;
> >
> >
> >
> > If (desc==null)  //always…
> >
> > {
> >
> > }
> >
> >
> >
> >
> >
> > * *
> >
> > *From:*1T3XT BVBA [mailto:i...@1t3xt.info]
> > *Sent:* Monday, September 12, 2011 7:50 PM
> > *To:* Post all your questions about iText here
> > *Subject:* Re: [iText-questions] Font embedded or Not
> >
> >
> >
> > On 12/09/2011 15:18, Purushothaman Dhanapal wrote:
> >
> > Hi Support,
> >
> >
> > I didn't find Liquent on the list of companies with support. Are you
> > perhaps using an e-mail address that doesn't correspond with the one
> > registered upon purchasing a license?
> >
> >
> >
> >  We are using itextsharp in our application.  There is a pdf file which
> > doesn’t contains any font descriptor.  But I need to identify whether
> > Font is embedded or not embedded. Please help me out to identify and
> > resolving this issue.
> >
> >
> > You can help yourself by reading the book "iText in Action – 2nd
> > Edition". More specifically section 16.1.3. Take a look at the result on
> > page 531: a list of fonts is produced showing "embedded", "subset" or
> > "nofontdescriptor" depending on whether the font was fully, partly or
> > not embedded.
> >
> >
> >
> >
> --
> > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
> > Learn about the latest advances in developing for the
> > BlackBerry® mobile platform with sessions, labs & more.
> > See new tools and technologies. Register for BlackBerry® DevCon
> today!
> > http://p.sf.net/sfu/rim-devcon-copy1
> >
> >
> >
> > ___
> > iText-questions mailing list
> > iText-questions@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
> > iText(R) is a registered trademark of 1T3XT BVBA.
> > Many questions posted to this list can (and will) be answered with a
> reference to the iText book: http://www.itextpdf.com/book/
> > Please check the keywords list before you ask for examples:
> http://itextpdf.com/themes/keywords.php
>
> --
> Balder VC
> http://www.redlab.be/blog/
> http://twitter.com/redlabbe
>
>
> --
> 

Re: [iText-questions] TextField Font

2011-09-14 Thread Leonard Rosenthol
Sounds like you are trying to understanding PDF w/o having read ISO 32000-1 – 
not possible.   Grab yourself a copy and start reading the relevant sections.

From: Khatri Anand mailto:anand.khatr...@gmail.com>>
Reply-To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Date: Wed, 14 Sep 2011 04:47:15 -0700
To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Subject: Re: [iText-questions] TextField Font

Hello sir,

 1 more problem about the Textfield that
  How can I get the textfield backgroudcolor, Border style, Border Color, 
Border width and textColor?

  thanks & regards,


On Wed, Sep 14, 2011 at 4:34 AM, Khatri Anand 
mailto:anand.khatr...@gmail.com>> wrote:
Hello sir,

 Now I use following line of code...

PdfObject da = itemDict.get(PdfName.DA);
 StringTokenizer st = new StringTokenizer(da.toString(), " ");
 String fontRef = st.nextToken();
 PdfName fontRefName = new PdfName(PdfName.decodeName(fontRef));
 PdfDictionary font = (PdfDictionary) DR.get(PdfName.FONT);
 PRIndirectReference fontIndRef = (PRIndirectReference) 
font.get(fontRefName);
 BaseFont baseFont = BaseFont.createFont(fontIndRef);


But I can't get the output...
so please sir point me out that where I am wrong in above code.


Thanks & regards,


On Wed, Sep 14, 2011 at 4:03 AM, Khatri Anand 
mailto:anand.khatr...@gmail.com>> wrote:
Thank you very much sir


On Wed, Sep 14, 2011 at 3:56 AM, Leonard Rosenthol 
mailto:lrose...@adobe.com>> wrote:
ISO 32000-1:2008, 12.7.2, Table 218.

From: Khatri Anand mailto:anand.khatr...@gmail.com>>
Reply-To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Date: Wed, 14 Sep 2011 03:44:43 -0700

To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Subject: Re: [iText-questions] TextField Font

Sorry I can not understand

 what do you mean by DR?

Thanks & Regards

On Wed, Sep 14, 2011 at 3:36 AM, Leonard Rosenthol 
mailto:lrose...@adobe.com>> wrote:
DR for Default Resources.

From: Khatri Anand mailto:anand.khatr...@gmail.com>>
Reply-To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Date: Wed, 14 Sep 2011 00:18:09 -0700
To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Subject: [iText-questions] TextField Font

Hello sir,

 I got the TextField Fontreference name by following line of code

PdfObject da = dict.get(PdfName.DA);
System.out.println("object  "+da);
StringTokenizer st = new StringTokenizer(da.toString(), 
" ");
String fontRef = st.nextToken();
PdfName fontRefName = new 
PdfName(PdfName.decodeName(fontRef));

I got /Cour as a output...

by this I got the Font reference so how can I get the Font name?
e.g. /Cour I get COURIER


Thanks & regards
--
Anand Khatri
Software Developer

ZEITECH Solutions,
Ahmedabad.
Ph  : +91 808071




--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php



--
Anand Khatri
Software Developer

ZEITECH Solutions,
Ahmedabad.
Ph  : +91 808071




--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php



--
Anand Khatri
Software Developer

ZEITECH Solutions,
Ahmedabad.
Ph  : +91 808071






--
Anand Khatri
Software Developer

ZEITECH Solutions,
Ahmedabad

Re: [iText-questions] TextField Font

2011-09-14 Thread Leonard Rosenthol
You can't convert a font dictionary in the PDF into an iText Font dictionary 
(AFAIK).

You are going to need to follow the dictionaries to get the necessary info.  
ISO 32000-1:2008, 9.5->9.9 for every you want to know about fonts.

From: Khatri Anand mailto:anand.khatr...@gmail.com>>
Reply-To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Date: Wed, 14 Sep 2011 04:34:46 -0700
To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Subject: Re: [iText-questions] TextField Font

Hello sir,

 Now I use following line of code...

PdfObject da = itemDict.get(PdfName.DA);
 StringTokenizer st = new StringTokenizer(da.toString(), " ");
 String fontRef = st.nextToken();
 PdfName fontRefName = new PdfName(PdfName.decodeName(fontRef));
 PdfDictionary font = (PdfDictionary) DR.get(PdfName.FONT);
 PRIndirectReference fontIndRef = (PRIndirectReference) 
font.get(fontRefName);
 BaseFont baseFont = BaseFont.createFont(fontIndRef);


But I can't get the output...
so please sir point me out that where I am wrong in above code.


Thanks & regards,

On Wed, Sep 14, 2011 at 4:03 AM, Khatri Anand 
mailto:anand.khatr...@gmail.com>> wrote:
Thank you very much sir


On Wed, Sep 14, 2011 at 3:56 AM, Leonard Rosenthol 
mailto:lrose...@adobe.com>> wrote:
ISO 32000-1:2008, 12.7.2, Table 218.

From: Khatri Anand mailto:anand.khatr...@gmail.com>>
Reply-To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Date: Wed, 14 Sep 2011 03:44:43 -0700

To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Subject: Re: [iText-questions] TextField Font

Sorry I can not understand

 what do you mean by DR?

Thanks & Regards

On Wed, Sep 14, 2011 at 3:36 AM, Leonard Rosenthol 
mailto:lrose...@adobe.com>> wrote:
DR for Default Resources.

From: Khatri Anand mailto:anand.khatr...@gmail.com>>
Reply-To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Date: Wed, 14 Sep 2011 00:18:09 -0700
To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Subject: [iText-questions] TextField Font

Hello sir,

 I got the TextField Fontreference name by following line of code

PdfObject da = dict.get(PdfName.DA);
System.out.println("object  "+da);
StringTokenizer st = new StringTokenizer(da.toString(), 
" ");
String fontRef = st.nextToken();
PdfName fontRefName = new 
PdfName(PdfName.decodeName(fontRef));

I got /Cour as a output...

by this I got the Font reference so how can I get the Font name?
e.g. /Cour I get COURIER


Thanks & regards
--
Anand Khatri
Software Developer

ZEITECH Solutions,
Ahmedabad.
Ph  : +91 808071




--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php



--
Anand Khatri
Software Developer

ZEITECH Solutions,
Ahmedabad.
Ph  : +91 808071




--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php



--
Anand Khatri
Software Developer

ZEITECH Solutions,
Ahmedabad.
Ph  : +91 808071






--
Anand Khatri
Software Developer

ZEITECH Solutions,
Ahmedabad.
Ph  : +91 808071



--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Le

Re: [iText-questions] TextField Font

2011-09-14 Thread Khatri Anand
Hello sir,

 1 more problem about the Textfield that
  How can I get the textfield backgroudcolor, Border style, Border Color,
Border width and textColor?

  thanks & regards,


On Wed, Sep 14, 2011 at 4:34 AM, Khatri Anand wrote:

> Hello sir,
>
>  Now I use following line of code...
>
> PdfObject da = itemDict.get(PdfName.*DA*);
>*  *StringTokenizer st =* new* StringTokenizer(da.toString(), " ");
>*  *String fontRef = st.nextToken();
>*  *PdfName fontRefName =* new* PdfName(PdfName.*decodeName*
> (fontRef));
>*  *PdfDictionary font = (PdfDictionary) DR.get(PdfName.*FONT*);
> * *PRIndirectReference fontIndRef = (PRIndirectReference) font.get
> (fontRefName);
> * * BaseFont baseFont = BaseFont.*createFont*(fontIndRef);
>
>
> But I can't get the output...
> so please sir point me out that where I am wrong in above code.
>
>
> Thanks & regards,
>
>
> On Wed, Sep 14, 2011 at 4:03 AM, Khatri Anand wrote:
>
>> Thank you very much sir
>>
>>
>> On Wed, Sep 14, 2011 at 3:56 AM, Leonard Rosenthol wrote:
>>
>>> ISO 32000-1:2008, 12.7.2, Table 218.
>>>
>>> From: Khatri Anand 
>>> Reply-To: Post here 
>>> Date: Wed, 14 Sep 2011 03:44:43 -0700
>>>
>>> To: Post here 
>>> Subject: Re: [iText-questions] TextField Font
>>>
>>> Sorry I can not understand
>>>
>>>  what do you mean by DR?
>>>
>>> Thanks & Regards
>>>
>>> On Wed, Sep 14, 2011 at 3:36 AM, Leonard Rosenthol 
>>> wrote:
>>>
 DR for Default Resources.

 From: Khatri Anand 
 Reply-To: Post here 
 Date: Wed, 14 Sep 2011 00:18:09 -0700
 To: Post here 
 Subject: [iText-questions] TextField Font

 Hello sir,

  I got the TextField Fontreference name by following line of code

 PdfObject da = dict.get(PdfName.DA);
 System.out.println("object  "+da);
 StringTokenizer st = new
 StringTokenizer(da.toString(), " ");
 String fontRef = st.nextToken();

 PdfName fontRefName = new
 PdfName(PdfName.decodeName(fontRef));

 I got /Cour as a output...

 by this I got the Font reference so how can I get the Font name?
 e.g. /Cour I get COURIER


 Thanks & regards
 --
 *Anand Khatri*
 Software Developer

 ZEITECH Solutions,
 Ahmedabad.
 Ph  : *+91 808071**
 *




 --
 BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
 Learn about the latest advances in developing for the
 BlackBerry® mobile platform with sessions, labs & more.
 See new tools and technologies. Register for BlackBerry® DevCon
 today!
 http://p.sf.net/sfu/rim-devcon-copy1
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions

 iText(R) is a registered trademark of 1T3XT BVBA.
 Many questions posted to this list can (and will) be answered with a
 reference to the iText book: http://www.itextpdf.com/book/
 Please check the keywords list before you ask for examples:
 http://itextpdf.com/themes/keywords.php

>>>
>>>
>>>
>>> --
>>> *Anand Khatri*
>>> Software Developer
>>>
>>> ZEITECH Solutions,
>>> Ahmedabad.
>>> Ph  : *+91 808071**
>>>  *
>>>
>>>
>>>
>>>
>>> --
>>> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
>>> Learn about the latest advances in developing for the
>>> BlackBerry® mobile platform with sessions, labs & more.
>>> See new tools and technologies. Register for BlackBerry® DevCon
>>> today!
>>> http://p.sf.net/sfu/rim-devcon-copy1
>>> ___
>>> iText-questions mailing list
>>> iText-questions@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>>
>>> iText(R) is a registered trademark of 1T3XT BVBA.
>>> Many questions posted to this list can (and will) be answered with a
>>> reference to the iText book: http://www.itextpdf.com/book/
>>> Please check the keywords list before you ask for examples:
>>> http://itextpdf.com/themes/keywords.php
>>>
>>
>>
>>
>> --
>> *Anand Khatri*
>> Software Developer
>>
>> ZEITECH Solutions,
>> Ahmedabad.
>> Ph  : *+91 808071**
>>  *
>>
>>
>>
>
>
> --
> *Anand Khatri*
> Software Developer
>
> ZEITECH Solutions,
> Ahmedabad.
> Ph  : *+91 808071**
> *
>
>
>


-- 
*Anand Khatri*
Software Developer

ZEITECH Solutions,
Ahmedabad.
Ph  : *+91 808071**
*
--
BlackBerry® DevCon Amer

Re: [iText-questions] TextField Font

2011-09-14 Thread Khatri Anand
Hello sir,

 Now I use following line of code...

PdfObject da = itemDict.get(PdfName.*DA*);
   *  *StringTokenizer st =* new* StringTokenizer(da.toString(), " ");
   *  *String fontRef = st.nextToken();
   *  *PdfName fontRefName =* new* PdfName(PdfName.*decodeName*
(fontRef));
   *  *PdfDictionary font = (PdfDictionary) DR.get(PdfName.*FONT*);
* *PRIndirectReference fontIndRef = (PRIndirectReference) font.get
(fontRefName);
* * BaseFont baseFont = BaseFont.*createFont*(fontIndRef);


But I can't get the output...
so please sir point me out that where I am wrong in above code.


Thanks & regards,

On Wed, Sep 14, 2011 at 4:03 AM, Khatri Anand wrote:

> Thank you very much sir
>
>
> On Wed, Sep 14, 2011 at 3:56 AM, Leonard Rosenthol wrote:
>
>> ISO 32000-1:2008, 12.7.2, Table 218.
>>
>> From: Khatri Anand 
>> Reply-To: Post here 
>> Date: Wed, 14 Sep 2011 03:44:43 -0700
>>
>> To: Post here 
>> Subject: Re: [iText-questions] TextField Font
>>
>> Sorry I can not understand
>>
>>  what do you mean by DR?
>>
>> Thanks & Regards
>>
>> On Wed, Sep 14, 2011 at 3:36 AM, Leonard Rosenthol wrote:
>>
>>> DR for Default Resources.
>>>
>>> From: Khatri Anand 
>>> Reply-To: Post here 
>>> Date: Wed, 14 Sep 2011 00:18:09 -0700
>>> To: Post here 
>>> Subject: [iText-questions] TextField Font
>>>
>>> Hello sir,
>>>
>>>  I got the TextField Fontreference name by following line of code
>>>
>>> PdfObject da = dict.get(PdfName.DA);
>>> System.out.println("object  "+da);
>>> StringTokenizer st = new
>>> StringTokenizer(da.toString(), " ");
>>> String fontRef = st.nextToken();
>>>
>>> PdfName fontRefName = new
>>> PdfName(PdfName.decodeName(fontRef));
>>>
>>> I got /Cour as a output...
>>>
>>> by this I got the Font reference so how can I get the Font name?
>>> e.g. /Cour I get COURIER
>>>
>>>
>>> Thanks & regards
>>> --
>>> *Anand Khatri*
>>> Software Developer
>>>
>>> ZEITECH Solutions,
>>> Ahmedabad.
>>> Ph  : *+91 808071**
>>> *
>>>
>>>
>>>
>>>
>>> --
>>> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
>>> Learn about the latest advances in developing for the
>>> BlackBerry® mobile platform with sessions, labs & more.
>>> See new tools and technologies. Register for BlackBerry® DevCon
>>> today!
>>> http://p.sf.net/sfu/rim-devcon-copy1
>>> ___
>>> iText-questions mailing list
>>> iText-questions@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>>
>>> iText(R) is a registered trademark of 1T3XT BVBA.
>>> Many questions posted to this list can (and will) be answered with a
>>> reference to the iText book: http://www.itextpdf.com/book/
>>> Please check the keywords list before you ask for examples:
>>> http://itextpdf.com/themes/keywords.php
>>>
>>
>>
>>
>> --
>> *Anand Khatri*
>> Software Developer
>>
>> ZEITECH Solutions,
>> Ahmedabad.
>> Ph  : *+91 808071**
>>  *
>>
>>
>>
>>
>> --
>> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
>> Learn about the latest advances in developing for the
>> BlackBerry® mobile platform with sessions, labs & more.
>> See new tools and technologies. Register for BlackBerry® DevCon today!
>> http://p.sf.net/sfu/rim-devcon-copy1
>> ___
>> iText-questions mailing list
>> iText-questions@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>
>> iText(R) is a registered trademark of 1T3XT BVBA.
>> Many questions posted to this list can (and will) be answered with a
>> reference to the iText book: http://www.itextpdf.com/book/
>> Please check the keywords list before you ask for examples:
>> http://itextpdf.com/themes/keywords.php
>>
>
>
>
> --
> *Anand Khatri*
> Software Developer
>
> ZEITECH Solutions,
> Ahmedabad.
> Ph  : *+91 808071**
>  *
>
>
>


-- 
*Anand Khatri*
Software Developer

ZEITECH Solutions,
Ahmedabad.
Ph  : *+91 808071**
*
--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 ___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a r

Re: [iText-questions] TextField Font

2011-09-14 Thread Khatri Anand
Thank you very much sir

On Wed, Sep 14, 2011 at 3:56 AM, Leonard Rosenthol wrote:

> ISO 32000-1:2008, 12.7.2, Table 218.
>
> From: Khatri Anand 
> Reply-To: Post here 
> Date: Wed, 14 Sep 2011 03:44:43 -0700
>
> To: Post here 
> Subject: Re: [iText-questions] TextField Font
>
> Sorry I can not understand
>
>  what do you mean by DR?
>
> Thanks & Regards
>
> On Wed, Sep 14, 2011 at 3:36 AM, Leonard Rosenthol wrote:
>
>> DR for Default Resources.
>>
>> From: Khatri Anand 
>> Reply-To: Post here 
>> Date: Wed, 14 Sep 2011 00:18:09 -0700
>> To: Post here 
>> Subject: [iText-questions] TextField Font
>>
>> Hello sir,
>>
>>  I got the TextField Fontreference name by following line of code
>>
>> PdfObject da = dict.get(PdfName.DA);
>> System.out.println("object  "+da);
>> StringTokenizer st = new
>> StringTokenizer(da.toString(), " ");
>> String fontRef = st.nextToken();
>>
>> PdfName fontRefName = new
>> PdfName(PdfName.decodeName(fontRef));
>>
>> I got /Cour as a output...
>>
>> by this I got the Font reference so how can I get the Font name?
>> e.g. /Cour I get COURIER
>>
>>
>> Thanks & regards
>> --
>> *Anand Khatri*
>> Software Developer
>>
>> ZEITECH Solutions,
>> Ahmedabad.
>> Ph  : *+91 808071**
>> *
>>
>>
>>
>>
>> --
>> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
>> Learn about the latest advances in developing for the
>> BlackBerry® mobile platform with sessions, labs & more.
>> See new tools and technologies. Register for BlackBerry® DevCon today!
>> http://p.sf.net/sfu/rim-devcon-copy1
>> ___
>> iText-questions mailing list
>> iText-questions@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>
>> iText(R) is a registered trademark of 1T3XT BVBA.
>> Many questions posted to this list can (and will) be answered with a
>> reference to the iText book: http://www.itextpdf.com/book/
>> Please check the keywords list before you ask for examples:
>> http://itextpdf.com/themes/keywords.php
>>
>
>
>
> --
> *Anand Khatri*
> Software Developer
>
> ZEITECH Solutions,
> Ahmedabad.
> Ph  : *+91 808071**
> *
>
>
>
>
> --
> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
> Learn about the latest advances in developing for the
> BlackBerry® mobile platform with sessions, labs & more.
> See new tools and technologies. Register for BlackBerry® DevCon today!
> http://p.sf.net/sfu/rim-devcon-copy1
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> iText(R) is a registered trademark of 1T3XT BVBA.
> Many questions posted to this list can (and will) be answered with a
> reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples:
> http://itextpdf.com/themes/keywords.php
>



-- 
*Anand Khatri*
Software Developer

ZEITECH Solutions,
Ahmedabad.
Ph  : *+91 808071**
*
--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 ___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] TextField Font

2011-09-14 Thread Leonard Rosenthol
ISO 32000-1:2008, 12.7.2, Table 218.

From: Khatri Anand mailto:anand.khatr...@gmail.com>>
Reply-To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Date: Wed, 14 Sep 2011 03:44:43 -0700
To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Subject: Re: [iText-questions] TextField Font

Sorry I can not understand

 what do you mean by DR?

Thanks & Regards

On Wed, Sep 14, 2011 at 3:36 AM, Leonard Rosenthol 
mailto:lrose...@adobe.com>> wrote:
DR for Default Resources.

From: Khatri Anand mailto:anand.khatr...@gmail.com>>
Reply-To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Date: Wed, 14 Sep 2011 00:18:09 -0700
To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Subject: [iText-questions] TextField Font

Hello sir,

 I got the TextField Fontreference name by following line of code

PdfObject da = dict.get(PdfName.DA);
System.out.println("object  "+da);
StringTokenizer st = new StringTokenizer(da.toString(), 
" ");
String fontRef = st.nextToken();
PdfName fontRefName = new 
PdfName(PdfName.decodeName(fontRef));

I got /Cour as a output...

by this I got the Font reference so how can I get the Font name?
e.g. /Cour I get COURIER


Thanks & regards
--
Anand Khatri
Software Developer

ZEITECH Solutions,
Ahmedabad.
Ph  : +91 808071




--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php



--
Anand Khatri
Software Developer

ZEITECH Solutions,
Ahmedabad.
Ph  : +91 808071



--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 ___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] TextField Font

2011-09-14 Thread Khatri Anand
Sorry I can not understand

 what do you mean by DR?

Thanks & Regards

On Wed, Sep 14, 2011 at 3:36 AM, Leonard Rosenthol wrote:

> DR for Default Resources.
>
> From: Khatri Anand 
> Reply-To: Post here 
> Date: Wed, 14 Sep 2011 00:18:09 -0700
> To: Post here 
> Subject: [iText-questions] TextField Font
>
> Hello sir,
>
>  I got the TextField Fontreference name by following line of code
>
> PdfObject da = dict.get(PdfName.DA);
> System.out.println("object  "+da);
> StringTokenizer st = new
> StringTokenizer(da.toString(), " ");
> String fontRef = st.nextToken();
>
> PdfName fontRefName = new
> PdfName(PdfName.decodeName(fontRef));
>
> I got /Cour as a output...
>
> by this I got the Font reference so how can I get the Font name?
> e.g. /Cour I get COURIER
>
>
> Thanks & regards
> --
> *Anand Khatri*
> Software Developer
>
> ZEITECH Solutions,
> Ahmedabad.
> Ph  : *+91 808071**
> *
>
>
>
>
> --
> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
> Learn about the latest advances in developing for the
> BlackBerry® mobile platform with sessions, labs & more.
> See new tools and technologies. Register for BlackBerry® DevCon today!
> http://p.sf.net/sfu/rim-devcon-copy1
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> iText(R) is a registered trademark of 1T3XT BVBA.
> Many questions posted to this list can (and will) be answered with a
> reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples:
> http://itextpdf.com/themes/keywords.php
>



-- 
*Anand Khatri*
Software Developer

ZEITECH Solutions,
Ahmedabad.
Ph  : *+91 808071**
*
--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 ___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] TextField Font

2011-09-14 Thread Leonard Rosenthol
DR for Default Resources.

From: Khatri Anand mailto:anand.khatr...@gmail.com>>
Reply-To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Date: Wed, 14 Sep 2011 00:18:09 -0700
To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Subject: [iText-questions] TextField Font

Hello sir,

 I got the TextField Fontreference name by following line of code

PdfObject da = dict.get(PdfName.DA);
System.out.println("object  "+da);
StringTokenizer st = new StringTokenizer(da.toString(), 
" ");
String fontRef = st.nextToken();
PdfName fontRefName = new 
PdfName(PdfName.decodeName(fontRef));

I got /Cour as a output...

by this I got the Font reference so how can I get the Font name?
e.g. /Cour I get COURIER


Thanks & regards
--
Anand Khatri
Software Developer

ZEITECH Solutions,
Ahmedabad.
Ph  : +91 808071



--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 ___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] Font embedded or Not

2011-09-14 Thread Leonard Rosenthol
Please post the actual PDF in question so we can analyze it ourselves and 
provide a definitive answer, otherwise we are just GUESSING.

However, I will state AUTHORITATIVELY that since all embedded font data is 
referenced from the FontDescriptor dictionary (ISO 32000-1:2008, 9.8), if the 
font in question does NOT have one, then it is NOT an embedded font.

Leonard Rosenthol
PDF Architect
Adobe Systems

From: Purushothaman Dhanapal 
mailto:purushotha...@liquent.com>>
Reply-To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Date: Tue, 13 Sep 2011 23:27:47 -0700
To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Subject: Re: [iText-questions] Font embedded or Not

No. You are wrong.  The pdf is embedded ,though the font descriptor is null . 
How to identify in this case.?

Thanks & Regards,
Purushothaman.D
From: Leonard Rosenthol [mailto:lrose...@adobe.com]
Sent: Tuesday, September 13, 2011 4:11 PM
To: Post here
Subject: Re: [iText-questions] Font embedded or Not

If there is no Font Descriptor, then it's NOT embedded!

From: Purushothaman Dhanapal 
mailto:purushotha...@liquent.com>>
Reply-To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Date: Tue, 13 Sep 2011 01:04:23 -0700
To: Post here 
mailto:itext-questions@lists.sourceforge.net>>
Subject: Re: [iText-questions] Font embedded or Not

Hi,


I gone through the chapter that you have mentioned. In my case ,the PDF that I 
used doesn’t have FONTDESCRIPTOR and it is null.



Question is: How to identify if font is Embedded or Not for this PDF though the 
FONTDESCRIPTOR is null.  Please provide me the sample code in itextsharp.



 
PdfDictionary
 desc = 
font.getAsDict(PdfName.FONTDESCRIPTOR);



If (desc==null)  //always…

{

}



From: 1T3XT BVBA [mailto:i...@1t3xt.info]
Sent: Monday, September 12, 2011 7:50 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Font embedded or Not

On 12/09/2011 15:18, Purushothaman Dhanapal wrote:
Hi Support,

I didn't find Liquent on the list of companies with support. Are you perhaps 
using an e-mail address that doesn't correspond with the one registered upon 
purchasing a license?



 We are using itextsharp in our application.  There is a pdf file which doesn’t 
contains any font descriptor.  But I need to identify whether Font is embedded 
or not embedded. Please help me out to identify and resolving this issue.

You can help yourself by reading the book "iText in Action – 2nd Edition". More 
specifically section 16.1.3. Take a look at the result on page 531: a list of 
fonts is produced showing "embedded", "subset" or "nofontdescriptor" depending 
on whether the font was fully, partly or not embedded.
--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 ___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] Font embedded or Not

2011-09-14 Thread Balder VC
What do you mean, 'the PDF is embedded'? The PDF you want to search in
for a font is an attachment in another PDF?

Then perhaps the PDF that is the container for the attachment has no
fonts embedded as it will not show the fonts for the attachment.

Font's don't have to be embedded in the PDF, then the viewer uses it's
default fonts ...
Perhaps provide the PDF you are talking about and you'll receive a
better answer or read a bit in the PDF spec to learn about fonts&pdf


Regards
Balder

On 09/14/2011 08:27 AM, Purushothaman Dhanapal wrote:
> No. You are wrong.  The pdf is embedded ,though the font descriptor is
> null . How to identify in this case.?
> 
>  
> 
> *Thanks & Regards,*
> 
> *Purushothaman.D*
> 
> *From:*Leonard Rosenthol [mailto:lrose...@adobe.com]
> *Sent:* Tuesday, September 13, 2011 4:11 PM
> *To:* Post here
> *Subject:* Re: [iText-questions] Font embedded or Not
> 
>  
> 
> If there is no Font Descriptor, then it's NOT embedded!
> 
>  
> 
> *From: *Purushothaman Dhanapal  >
> *Reply-To: *Post here  >
> *Date: *Tue, 13 Sep 2011 01:04:23 -0700
> *To: *Post here  >
> *Subject: *Re: [iText-questions] Font embedded or Not
> 
>  
> 
> Hi,
> 
>  
> 
> I gone through the chapter that you have mentioned. In my case ,the PDF that 
> I used doesn’t have FONTDESCRIPTOR and it is null. 
> 
>  
> 
> _Question is:_ How to identify if font is Embedded or Not for this PDF though 
> the FONTDESCRIPTOR is null.  Please provide me the sample code in itextsharp.
> 
>  
> 
>  *PdfDictionary* 
>  desc 
> = font.getAsDict*(**PdfName* 
> .FONTDESCRIPTOR*)*;
> 
>  
> 
> If (desc==null)  //always…
> 
> {
> 
> }
> 
>  
> 
>  
> 
> * *
> 
> *From:*1T3XT BVBA [mailto:i...@1t3xt.info]
> *Sent:* Monday, September 12, 2011 7:50 PM
> *To:* Post all your questions about iText here
> *Subject:* Re: [iText-questions] Font embedded or Not
> 
>  
> 
> On 12/09/2011 15:18, Purushothaman Dhanapal wrote:
> 
> Hi Support,
> 
> 
> I didn't find Liquent on the list of companies with support. Are you
> perhaps using an e-mail address that doesn't correspond with the one
> registered upon purchasing a license?
> 
> 
> 
>  We are using itextsharp in our application.  There is a pdf file which
> doesn’t contains any font descriptor.  But I need to identify whether
> Font is embedded or not embedded. Please help me out to identify and
> resolving this issue.
> 
> 
> You can help yourself by reading the book "iText in Action – 2nd
> Edition". More specifically section 16.1.3. Take a look at the result on
> page 531: a list of fonts is produced showing "embedded", "subset" or
> "nofontdescriptor" depending on whether the font was fully, partly or
> not embedded.
> 
> 
> 
> --
> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
> Learn about the latest advances in developing for the 
> BlackBerry® mobile platform with sessions, labs & more.
> See new tools and technologies. Register for BlackBerry® DevCon today!
> http://p.sf.net/sfu/rim-devcon-copy1 
> 
> 
> 
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> iText(R) is a registered trademark of 1T3XT BVBA.
> Many questions posted to this list can (and will) be answered with a 
> reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples: 
> http://itextpdf.com/themes/keywords.php

-- 
Balder VC
http://www.redlab.be/blog/
http://twitter.com/redlabbe

--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


[iText-questions] TextField Font

2011-09-14 Thread Khatri Anand
Hello sir,

 I got the TextField Fontreference name by following line of code

PdfObject da = dict.get(PdfName.DA);
System.out.println("object  "+da);
StringTokenizer st = new
StringTokenizer(da.toString(), " ");
String fontRef = st.nextToken();

PdfName fontRefName = new
PdfName(PdfName.decodeName(fontRef));

I got /Cour as a output...

by this I got the Font reference so how can I get the Font name?
e.g. /Cour I get COURIER


Thanks & regards
-- 
*Anand Khatri*
Software Developer

ZEITECH Solutions,
Ahmedabad.
Ph  : *+91 808071**
*
--
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 ___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php