Hi,

Just wanted to add a couple things, this is the line of code I am using to bold 
text:

chnk.setTextRenderMode(PdfContentByte.TEXT_RENDER_MODE_FILL_STROKE, 0.0f, null);

Also, the 'Good' pdf is not generated by iText, it is using a different 
program, I included it so the difference in quality could be seen more easily.

thanks.

-----Original Message-----
From: itext-questions-requ...@lists.sourceforge.net 
[mailto:itext-questions-requ...@lists.sourceforge.net] 
Sent: Wednesday, May 12, 2010 10:52 AM
To: itext-questions@lists.sourceforge.net
Subject: iText-questions Digest, Vol 48, Issue 36

Send iText-questions mailing list submissions to
        itext-questions@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/itext-questions
or, via email, send a message with subject or body 'help' to
        itext-questions-requ...@lists.sourceforge.net

You can reach the person managing the list at
        itext-questions-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of iText-questions digest..."


Today's Topics:

   1. Re: Bolded text is fuzzy in PDFs (Adam Mork)
   2. Re: How to embed Type1 Japanese fonts (de Beus, Eric)


----------------------------------------------------------------------

Message: 1
Date: Wed, 12 May 2010 10:40:42 -0600
From: Adam Mork <ad...@windward.net>
Subject: Re: [iText-questions] Bolded text is fuzzy in PDFs
To: "itext-questions@lists.sourceforge.net"
        <itext-questions@lists.sourceforge.net>
Message-ID:
        <ebe1b358174e3f4da96c5733262de20b037ec97...@zelda.windward.local>
Content-Type: text/plain; charset="us-ascii"

Hi Leonard,

Here are links to both the pdf's. 

Bad -> http://www.windwardreports.com/temp/primf.pdf
Good -> http://www.windwardreports.com/temp/primf2.pdf

thanks

-----Original Message-----
From: itext-questions-requ...@lists.sourceforge.net 
[mailto:itext-questions-requ...@lists.sourceforge.net] 
Sent: Wednesday, May 12, 2010 12:23 AM
To: itext-questions@lists.sourceforge.net
Subject: iText-questions Digest, Vol 48, Issue 33

Send iText-questions mailing list submissions to
        itext-questions@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/itext-questions
or, via email, send a message with subject or body 'help' to
        itext-questions-requ...@lists.sourceforge.net

You can reach the person managing the list at
        itext-questions-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of iText-questions digest..."


Today's Topics:

   1. Text extraction (Rui Ribeiro)
   2. Bolded text is fuzzy in PDFs (Adam Mork)
   3. Re: Bolded text is fuzzy in PDFs (Leonard Rosenthol)
   4. Re: .NET/iTextSharp Apply Digital Signature (chorpeac)
   5. Re: Text extraction (1T3XT info)


----------------------------------------------------------------------

Message: 1
Date: Wed, 12 May 2010 00:16:17 +0100
From: "Rui Ribeiro" <rui...@ruirib.net>
Subject: [iText-questions] Text extraction
To: <itext-questions@lists.sourceforge.net>
Message-ID: <00a501caf15f$f894f820$e9bee8...@ruirib.net>
Content-Type: text/plain; charset="us-ascii"

Hi,

 

I need to extract all text from a pdf file. Is there any code to achieve
that? I have bought the 2nd edition of itext in action, but seems some of
the relevant chapters for this are not yet available, but I do need to do
this as soon as possible. Any hints or suggestions (I will be using
iTextSharp)?

 

Thank you

 

Rui Ribeiro

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 2
Date: Tue, 11 May 2010 18:00:23 -0600
From: Adam Mork <ad...@windward.net>
Subject: [iText-questions] Bolded text is fuzzy in PDFs
To: "itext-questions@lists.sourceforge.net"
        <itext-questions@lists.sourceforge.net>
Message-ID:
        <ebe1b358174e3f4da96c5733262de20b037ec97...@zelda.windward.local>
Content-Type: text/plain; charset="us-ascii"

Hi iText,

Ive noticed that the bolded text in my generated PDF's looks particularly 
blurry. If I zoom into the character it looks very precise, but zoomed out at 
100% it looks very choppy and uneven. Ive read that this may be caused by the 
use of bitmap fonts instead of truetype ? Has anyone else had this problem 
before? Are there any workarounds ?

Thanks,
Adam Mork
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 3
Date: Tue, 11 May 2010 17:04:16 -0700
From: Leonard Rosenthol <lrose...@adobe.com>
Subject: Re: [iText-questions] Bolded text is fuzzy in PDFs
To: Post all your questions about iText here
        <itext-questions@lists.sourceforge.net>
Message-ID:
        <d23d6b9e57d654429a9ab6918caceaa97ca6885...@nambx02.corp.adobe.com>
Content-Type: text/plain; charset="us-ascii"

There are various reasons this might be the case, but w/o seeing an actual PDF 
- we can only speculate.

From: Adam Mork [mailto:ad...@windward.net]
Sent: Tuesday, May 11, 2010 5:00 PM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Bolded text is fuzzy in PDFs

Hi iText,

Ive noticed that the bolded text in my generated PDF's looks particularly 
blurry. If I zoom into the character it looks very precise, but zoomed out at 
100% it looks very choppy and uneven. Ive read that this may be caused by the 
use of bitmap fonts instead of truetype ? Has anyone else had this problem 
before? Are there any workarounds ?

Thanks,
Adam Mork
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 4
Date: Tue, 11 May 2010 17:40:16 -0700 (PDT)
From: chorpeac <chorp...@hotmail.com>
Subject: Re: [iText-questions] .NET/iTextSharp Apply Digital Signature
To: itext-questions@lists.sourceforge.net
Message-ID: <1273624816467-2195461.p...@n4.nabble.com>
Content-Type: text/plain; charset=us-ascii


Ok so we have the CAPICOM ActiveX object executing the SignData method, but
now I need to see how I can incorporate that with iTextSharp. Since I have
to sign the PDF with the user's private key and this is over the web, I
can't use the methods described in the iTextSharp examples....or can I? What
is actually required for a PDF digital signature field? 
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/NET-iTextSharp-Apply-Digital-Signature-tp2172831p2195461.html
Sent from the iText - General mailing list archive at Nabble.com.



------------------------------

Message: 5
Date: Wed, 12 May 2010 08:22:28 +0200
From: 1T3XT info <i...@1t3xt.info>
Subject: Re: [iText-questions] Text extraction
To: Post all your questions about iText here
        <itext-questions@lists.sourceforge.net>
Message-ID: <4bea4924.30...@1t3xt.info>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Rui Ribeiro wrote:
> Hi,
> 
> I need to extract all text from a pdf file. Is there any code to achieve 
> that? I have bought the 2^nd edition of itext in action, but seems some 
> of the relevant chapters for this are not yet available, but I do need 
> to do this as soon as possible. Any hints or suggestions (I will be 
> using iTextSharp)?

Maybe the examples on this page can help:
http://itextpdf.com/examples/index.php?page=toc&id=15

Take a look at the examples from ExtractPageContent on
(note that some of the examples in that chapter show
how NOT to do it, but that is explained in the book
of which you're still missing the chapter).
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info



------------------------------

------------------------------------------------------------------------------



------------------------------

_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


End of iText-questions Digest, Vol 48, Issue 33
***********************************************



------------------------------

Message: 2
Date: Wed, 12 May 2010 09:51:08 -0700
From: "de Beus, Eric" <eric.deb...@xerox.com>
Subject: Re: [iText-questions] How to embed Type1 Japanese fonts
To: "Post all your questions about iText here"
        <itext-questions@lists.sourceforge.net>
Message-ID:
        <b0c434f845fba14282a8657296baef40984...@usa7061ms005.na.xerox.net>
Content-Type: text/plain; charset="iso-8859-1"

Paulo,

Attached are
cjk_KozGoPro_UniJIS.pdf - looks OK, but font is not embedded
cjk_KozGoPro_Identity.pdf - no text visible, but font embedded
cjk_MSGothic_Identity.pdf - looks OK, and font is embedded

Thanks,

- Eric



-----Original Message-----
From: Paulo Soares [mailto:psoa...@glintt.com] 
Sent: Wednesday, May 12, 2010 9:26 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] How to embed Type1 Japanese fonts

Can you post the PDF? 

Paulo

-----Original Message-----
From: de Beus, Eric [mailto:eric.deb...@xerox.com] 
Sent: Wednesday, May 12, 2010 5:20 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] How to embed Type1 Japanese fonts

That's correct.

- Eric

-----Original Message-----
From: Paulo Soares [mailto:psoa...@glintt.com] 
Sent: Wednesday, May 12, 2010 9:00 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] How to embed Type1 Japanese fonts

Not even the latin characters show up?

Paulo 

-----Original Message-----
From: de Beus, Eric [mailto:eric.deb...@xerox.com]
Sent: Wednesday, May 12, 2010 4:25 PM
To: Post all your questions about iText here
Subject: [iText-questions] How to embed Type1 Japanese fonts

I've been trying to embed some Japanese fonts, and I've found that this:
    Font japan = FontFactory.GetFont("KozMinPro-Regular",
                                     "UniJIS-UCS2-H", 
                                      BaseFont.EMBEDDED,
                                      etc.
produces good text, but the font is not embedded (as expected, since CJK fonts 
don't embed). If I do this:
    Font japan =
FontFactory.GetFont("c:\\windows\\fonts\\KozGoProVI-Medium.otf", 
                                     BaseFont.IDENTITY_H, 
                                     BaseFont.EMBEDDED,
                                     etc.
the font is embedded, but the text is invisible, so presumably the characters 
are mismapped. It only seems to be a problem with Type1 fonts, since the same 
thing (second example, with IDENTITY_H) works fine with, e.g., 
"c:\\windows\\fonts\\msgothic.ttc,1" 

Does anyone know the magic formula to make this work?
Thanks,

- Eric


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.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: cjk_MSGothic_Identity.pdf
Type: application/octet-stream
Size: 21892 bytes
Desc: cjk_MSGothic_Identity.pdf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cjk_KozGoPro_Identity.pdf
Type: application/octet-stream
Size: 48464 bytes
Desc: cjk_KozGoPro_Identity.pdf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cjk_KozGoPro_UniJIS.pdf
Type: application/octet-stream
Size: 1509 bytes
Desc: cjk_KozGoPro_UniJIS.pdf

------------------------------

------------------------------------------------------------------------------



------------------------------

_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


End of iText-questions Digest, Vol 48, Issue 36
***********************************************

------------------------------------------------------------------------------

_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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/

Reply via email to