Re: [iText-questions] My HTML does not print all content on A4

2012-11-08 Thread iText Info
Op 7/11/2012 20:18, Alessandro Teixeira schreef:
 My first appearance on this list.
Yes, sorry, I fear you won't get an answer.
Your question is good, and you're providing a sample and all, but... 
this is typically something we look at on the paid support ticketing 
system. I fear there are very little developers on the free support 
mailing list who know XML Worker well enough to answer this question.

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
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] Unknown ecnryption type R=6

2012-11-08 Thread Bruno Lowagie
Op 8/11/2012 0:11, Leonard Rosenthol schreef:
 Actually, it just went back to being a CD:(.   Not going to be a standard 
 till probably early 2014 at the rate things are going:(.
Oh boy, I hope you're being too pessimistic here. I've just done a 
what's new in PDF 2.0 talk at a conference. Maybe I should change my 
mind and enroll for the ISO Committee meetings after all. I've worked 
for a University for a long time, and I have some experience speeding up 
the 'academic' approach.

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
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] Set field read-only

2012-11-08 Thread Danilo Nicolò
Hi all,

I have a question. Is it possible to set read-only fields of pdf created 
with adobe livecycle? I tried

acroff.setFieldProperty(id, setfflags, PdfFormField.FF_READ_ONLY, null);

but it doens't work when I open pdf I can write to field.

Thanks.

Regards,

Danilo

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
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] Unknown ecnryption type R=6

2012-11-08 Thread Leonard Rosenthol
I think you SHOULD join the committee - been telling you that for a whileŠ

As to why we slowed down, it's because it was felt that it was better to
do some key work now and get it into 2.0 than having to do a 2.1Š

Leonard


On 11/8/12 12:05 AM, Bruno Lowagie br...@lowagie.com wrote:

Op 8/11/2012 0:11, Leonard Rosenthol schreef:
 Actually, it just went back to being a CD:(.   Not going to be a
standard till probably early 2014 at the rate things are going:(.
Oh boy, I hope you're being too pessimistic here. I've just done a
what's new in PDF 2.0 talk at a conference. Maybe I should change my
mind and enroll for the ISO Committee meetings after all. I've worked
for a University for a long time, and I have some experience speeding up
the 'academic' approach.

--

Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
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] How to insert bold text in VerticalText

2012-11-08 Thread Xavier
Hello guys,

I try to create a vertical text with normal and bold text.
My text is in chinese.
I use UTF-8 encoding for wording integration from an external file.
I use arialuni.ttf font.

When working with simple document.add(new Phrase(myText,myFont))  in an
Horizontal  format, everything is ok. Texts appears in bold when needed.

But when using the VerticalText, I can't get bold caracters. Is that normal
?

here is the test source code :

Document document = new Document();
PdfWriter writer= PdfWriter.getInstance(document, new
FileOutputStream(filename));
bf  = BaseFont.createFont(fontName, BaseFont.IDENTITY_V,
BaseFont.EMBEDDED);
Font font0  = new Font( bf, 10 );
Font font1  = new Font( bf, 10, Font.BOLD );

VerticalText vt = new VerticalText(writer.getDirectContent());
vt.setVerticalLayout(250, 250, 100, 20, 1);

vt.addText(new Chunk(myTexte, font1)); // Same effect with new Phrase
vt.addText(new Chunk(myTexte, font1)); // same effect with new Phrase
vt.go();
document.close();

If anyone could help ..




--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/How-to-insert-bold-text-in-VerticalText-tp4656887.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
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] How to insert bold text in VerticalText

2012-11-08 Thread iText Info
First this: please register to the mailing-list.
You may assume that you are registered, but you are not.
See http://lowagie.com/nabble

Op 8/11/2012 11:12, Xavier schreef:
 Hello guys,

 I try to create a vertical text with normal and bold text.

For this to work you need to use a font family such as Arial with 
different fonts such as arial.ttf, ariali.ttf, arialb.ttf and arialbi.ttf

 My text is in chinese.

But the fonts I mentioned, don't support Chinese glyphs, so you need to:

 use arialuni.ttf font.

The arialuni.tff font only has regular glyphs (no bold, no italic, no 
bolditalic).
And that's why this doesn't work:

 Font font0= new Font( bf, 10 );
 Font font1= new Font( bf, 10, Font.BOLD );

So you have to use a workaround.
This workaround is explained in the book, more specifically in chapter 3.

If you want a Chunk to be 'bold', you can change the render mode like this:
Chunk c = new Chunk(myBoldChineseText, font0);
c.setTextRenderMode(PdfContentByte.TEXT_RENDER_MODE_FILL_STROKE, 1, null);

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
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] Cannot set a collection dictionary from a PdfStamper instance

2012-11-08 Thread Bernie
I am trying to create a pdf portfolio by embedding one or more pdf files into
a portfolio file.

When creating this portfolio file from scratch, with PdfWriter and a
Document, the collection is set as expected.  However, if I try to set the
collection on an already existing pdf document, using PdfStamper, it does
not work.

Is this expected behavior?  Is it possible to set a collection dictionary on
an existing document?  Is there something I'm missing that prevents the
collection dictionary from actually being written out to the document?

Here's a code snippet of what I am doing.  As an example, I am creating a
hidden collection and setting the initial document to the first embedded
file.

As a new file:

byte[] innerDocument = // byte content of document getting embedded.
ByteArrayOutputStream outDoc = new ByteArrayOutputStream();
Document doc = new Document(PageSize.LETTER);
PdfWriter writer = PdfWriter.getInstance(wrapper, outDoc);
doc.open();
PdfCollection coll = new PdfCollection(PdfCollection.HIDDEN);
coll.setInitialDocument(document1);
writer.setCollection(coll);
PdfFileSpecification fs = PdfFileSpecification.fileEmbedded(writer, null,
file.pdf, innerDocument, false);
fs.addDescription(document1, false);
writer.addFileAttachment(fs);
doc.add(new Paragraph(Some text for cover page.));
doc.close();
writer.close();

This works as expected.  However, if I want to use an existing document as
the portfolio file, it does not add the collection dictionary:

byte[] innerDocument = // byte content of document getting embedded.
byte[] outerDocument = // byte content of existing document to embed file
into.
ByteArrayOutputStream outDoc = new ByteArrayOutputStream();
PdfReader outerDoc = new PdfReader(outerDocument);
PdfStamper stamper = new PdfStamper(outerDoc, outDoc);
PdfWriter writer = stamper.getWriter();
PdfCollection coll = new PdfCollection(PdfCollection.HIDDEN);
coll.setInitialDocument(document1);
writer.setCollection(coll);
PdfFileSpecification fs = PdfFileSpecification.fileEmbedded(writer, null,
file.pdf, innerDocument, false);
fs.addDescription(document1, false);
writer.addFileAttachment(fs);
stamper.close();

When the document created by the first method is opened in Acrobat Reader,
it immediately opens the embedded file.  Also, when viewing the document in
a text viewer, the Collection Dictionary can be seen in the document.

However, the document created by the second method does not switch
immediately to the embedded document.  When viewing the created file in a
text viewer, the Collection Dictionary cannot be found.



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Cannot-set-a-collection-dictionary-from-a-PdfStamper-instance-tp4656890.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
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] Set field read-only

2012-11-08 Thread iText Info
Op 8/11/2012 11:52, Danilo Nicolò schreef:
 Hi all,

 I have a question. Is it possible to set read-only fields of pdf created
 with adobe livecycle? I tried

 acroff.setFieldProperty(id, setfflags, PdfFormField.FF_READ_ONLY, null);

 but it doens't work when I open pdf I can write to field.

You're using a fork to eat soup, I mean: you're using AcroForm syntax on 
an XFA form.
Please don't be surprised that this doesn't work.

If you want to set fields to read only, you need to manipulate the XML 
that is embedded in the PDF. You can do this using iText by extracting 
the XML, changing it with the XML library of your choice, and then put 
the XML back into the PDF using iText.

If you want to flatten the fields (removing all interactivity by 
rendering the XFA to PDF), you need XFA Worker: 
http://demo.itextsupport.com/xfademo

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
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] Unknown ecnryption type R=6

2012-11-08 Thread Bruno Lowagie
Op 8/11/2012 15:45, Leonard Rosenthol schreef:
 I think you SHOULD join the committee - been telling you that for a while
I joined the NBN and now I get plenty of mail regarding all kinds of 
ISO-standards.

I've read PDF/UA, PDF/A-3 and I posted some comments to the NBN (they 
were forwarded to the committee by the NBN; most of them were duplicates 
of comments made by other countries, but I was proud that the committee 
accepted one of my comments because 'the wording was better').

I didn't succeed in reading ISO-32000-2 completely, and I didn't have 
any comments on the parts I read BEFORE the deadline. I did have some 
comments on the parts I read AFTER the deadline (but I was too late to 
post them).

My main problem is that I receive too much mail from the NBN and I don't 
always have the time to read what the mails are about. Can you give me a 
heads up if there's a meeting I really should
attend?

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
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] Cannot set a collection dictionary from a PdfStamper instance

2012-11-08 Thread iText Info
Op 8/11/2012 17:14, Bernie schreef:
 I am trying to create a pdf portfolio by embedding one or more pdf files into
 a portfolio file.

 When creating this portfolio file from scratch, with PdfWriter and a
 Document, the collection is set as expected.  However, if I try to set the
 collection on an already existing pdf document, using PdfStamper, it does
 not work.

 Is this expected behavior?
If I only heard the question in words, I'd have answered no.
When looking at your code, the answer is yes:
 PdfWriter writer = stamper.getWriter();
 PdfCollection coll = new PdfCollection(PdfCollection.HIDDEN);
 coll.setInitialDocument(document1);
 writer.setCollection(coll);

The final line is wrong.
You need the makePackage() method that is available in PdfStamper.

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
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] Cannot set a collection dictionary from a PdfStamper instance

2012-11-08 Thread Brian Bernstein
Thank you.  That solved my issue.

That being said, is there any particular reason why the method to
write a Collection on PdfWriter is called setCollection while the same
method on PdfStamper is called makePackage?

It seems a little bit confusing.  Had the methods been named the same,
I probably would have figured this out while looking at the API
documentation.

On Thu, Nov 8, 2012 at 12:05 PM, iText Info i...@1t3xt.info wrote:
 Op 8/11/2012 17:14, Bernie schreef:
 I am trying to create a pdf portfolio by embedding one or more pdf files into
 a portfolio file.

 When creating this portfolio file from scratch, with PdfWriter and a
 Document, the collection is set as expected.  However, if I try to set the
 collection on an already existing pdf document, using PdfStamper, it does
 not work.

 Is this expected behavior?
 If I only heard the question in words, I'd have answered no.
 When looking at your code, the answer is yes:
 PdfWriter writer = stamper.getWriter();
 PdfCollection coll = new PdfCollection(PdfCollection.HIDDEN);
 coll.setInitialDocument(document1);
 writer.setCollection(coll);

 The final line is wrong.
 You need the makePackage() method that is available in PdfStamper.

 --
 Everyone hates slow websites. So do we.
 Make your web apps faster with AppDynamics
 Download AppDynamics Lite for free today:
 http://p.sf.net/sfu/appdyn_d2d_nov
 ___
 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

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
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] Cannot set a collection dictionary from a PdfStamper instance

2012-11-08 Thread iText Info
Op 8/11/2012 18:46, Brian Bernstein schreef:
 That being said, is there any particular reason why the method to
 write a Collection on PdfWriter is called setCollection while the same
 method on PdfStamper is called makePackage?
If there is one, I don't remember.
I must admit that I also had to search the code to find the method.
The following names are more or less interchangeable: PDF package, 
portable collection, portfolio.

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
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] Words wrapping problems in Korean

2012-11-08 Thread vicchugu
I've send sample code to you gmail account.



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Words-wrapping-problems-in-Korean-tp4656795p4656894.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
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] Unknown ecnryption type R=6

2012-11-08 Thread mcnamaragio
As there are already apps producing files with this encryption scheme
(Revision=6) is there any chance to have it supported before it is
finalized?



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Unknown-ecnryption-type-R-6-tp4656881p4656898.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
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] How to insert bold text in VerticalText

2012-11-08 Thread Xavier
Just as a complement about the mailing list, I registered at least three
times to the mailing list. I don't know how what to do to appears as a
member.



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/How-to-insert-bold-text-in-VerticalText-tp4656887p4656900.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
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] How to insert bold text in VerticalText

2012-11-08 Thread Xavier
Thanks for your help.

I already made some tests with the different font as specifed in the book
and for different languages. Chinese (STSong-Light,UniGB-UCS2-H), Japanese
(KozMinPro-Regular, UniJIS-UCS2-H or V) before trying to use the
VerticalText element.

Using a direct document.add( new Phrase(mytext,myFont)), I was able, with
arialuni.ttf, to get the bold glyph effect for all (with arialuni and with
specific fonts).

The problem came only with the VerticalText and, I just tested it, only with
the vertical encoding BaseFont.IDENTITY_V

A text in BaseFont.IDENTITY_H encoding seems to be in bold in the
VerticalText but not with the BaseFont.IDENTITY_V encoding.

As I think I can't write Chinese or Japanese Top to Bottom, Right to left
without VerticalText, here is my problem. 

About the VerticalText writting, I tried english or french texts in
Horizontal or Vertical writting and the effect is the same. Bold available
in Horizontal encoding but not in Vertical writting using chunks or Phrases
elements.

VerticalText vt = new VerticalText(writer.getDirectContent());
vt.setVerticalLayout(350, 550, 100, 25, 10);

vt.addText( new Phrase( myTexte, xmlPrintFont.getFont()  ) );
vt.addText( new Phrase( myTexte, xmlPrintFont1.getFont()  ) );
vt.addText( new Phrase( myTexte, xmlPrintFont.getFont()  ) );
vt.addText( new Phrase( myTexte, xmlPrintFont1.getFont()  ) );

vt.go();




--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/How-to-insert-bold-text-in-VerticalText-tp4656887p4656899.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
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] How to insert bold text in VerticalText

2012-11-08 Thread jian li
read chapter 11 of itext in action 2.


On Fri, Nov 9, 2012 at 1:36 PM, Xavier xjourn...@excub.com wrote:

 Just as a complement about the mailing list, I registered at least three
 times to the mailing list. I don't know how what to do to appears as a
 member.



 --
 View this message in context:
 http://itext-general.2136553.n4.nabble.com/How-to-insert-bold-text-in-VerticalText-tp4656887p4656900.html
 Sent from the iText - General mailing list archive at Nabble.com.


 --
 Everyone hates slow websites. So do we.
 Make your web apps faster with AppDynamics
 Download AppDynamics Lite for free today:
 http://p.sf.net/sfu/appdyn_d2d_nov
 ___
 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

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov___
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] How to insert bold text in VerticalText

2012-11-08 Thread Xavier
I'll do it in a few days only. I have iText in action first edition only 



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/How-to-insert-bold-text-in-VerticalText-tp4656887p4656902.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
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] Color Inverted after MakeMask of a Packedbit TIFF image

2012-11-08 Thread Peter Suen
I try to make a monochrome tiff image to transparent with MakeMask() in a
PDF.

It works on a CCITTT6 Tiff image, However when I do with a PackedBit Tiff
Image,
Its color was inverted after img.MakeMask(), and the content become
transparent.

Then I try to trace with iTextSharp's Source code,
and I found the function GetTiffImageColor() in
iTextSharp.text.pdf.codec.TiffImage
have something strange as below

if (photometric == TIFFConstants.PHOTOMETRIC_MINISWHITE)
   img.Inverted = true;

As I know,photometric MINISWHITE is the default setting that when a bit is
0, it show as WHITE.
and MINISBLACK will show as BLACK. 
Thus I modify the photometric to PHOTOMETRIC_MINISBLACK, and everything work
now.

Is it a bug?



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Color-Inverted-after-MakeMask-of-a-Packedbit-TIFF-image-tp4656903.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
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] Problems with FontSize and TextRenderInfo length while parsing itext

2012-11-08 Thread jian li
  Itext can't get character width if it is using type3 font. Does Itext can
not parse type3 font correctly?
  Any suggestion? Thanks very much


On Thu, Nov 8, 2012 at 10:39 AM, jian li lijian@gmail.com wrote:

 Hi, ALL:
 here is my problem. While parsing pdf using IText, I found some
 textRenderInfo has same start  point and end point.
 For example:
 start location: 79.67947,771.2007,1.0
 end location:  79.67947,771.2007,1.0,
 But  in fact this TextRenderInfo  contains  9 Chinese characters,
 [海南大东海旅游中心]. After debug into itext, I found DocumentFont.getWidth() always
 return 0 in this case.
 What should I do if I want to fix this? I really want to get the right
 start and end locations. Any suggestions will be welcome!
 Thanks in advance.

 The attachment is the document i am parsing using itext.  I meet this
 problem in page 51.

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov___
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