[iText-questions] George Yi is out of the office.

2008-07-08 Thread George Yi
I will be out of the office starting July 9, 2008 and will not return until July 14, 2008. I will respond to your message when I return. I will check my yahoo email once a day at [EMAIL PROTECTED] - Sponsored by: SourceFor

Re: [iText-questions] issue with line spacing when converting HTML into PDF using HTMLWorker

2008-07-08 Thread rajeshkatkam
1T3XT info wrote: > > rajeshkatkam wrote: >> can you give me an example how to use column text in my code >> > > http://1t3xt.info/examples/browse/?page=example&id=347 > > public static boolean addText(String s, PdfContentByte canvas, > float[] f, float size, boolean simulate) >

Re: [iText-questions] issue with line spacing when converting HTML into PDF using HTMLWorker

2008-07-08 Thread rajeshkatkam
1T3XT info wrote: > > rajeshkatkam wrote: >> can you give me an example how to use column text in my code >> > > http://1t3xt.info/examples/browse/?page=example&id=347 > > public static boolean addText(String s, PdfContentByte canvas, > float[] f, float size, boolean simulate) >

Re: [iText-questions] Simulation of font styles (styled source to nonstyled display)

2008-07-08 Thread Peter van Raamsdonk
Here's my original reference, http://www.mail-archive.com/itext-questions@lists.sourceforge.net/msg30224.html Font simulation was introduced in itext 2.0.5 (which I'm still using). Example, I have a true type font only in italic style but want to show it like regular (so a reverse in font simul

[iText-questions] Getting images

2008-07-08 Thread Nhia Nhia
Hello, I have a problem with extracting an image from a pdf and add this image to another document (it appears nothing in the output document). I use the following code: ... PdfDictionary xos = (PdfDictionary)reader.getPdfObject(resource.get(PdfName.XOBJECT)); if (xos == null) {

Re: [iText-questions] get link javascript action

2008-07-08 Thread Federico Alba
> > In Dutch we have a saying: "een gegeven paard niet in de mond kijken." > Literally translated, this sounds like: "you shouldn't look into the > mouth of the horse you were given." I think it's the same saying everywhere... Fact is that if nobody answers those questions, they get repeated ove

Re: [iText-questions] bug in iText? WAS: problem with Agency FBfont, iText Graphics2D, and scaling

2008-07-08 Thread Jason Boehle
> > Unfortunately, this is how the drawing engine in our product works, > > so changing it is not really an option. > > Then I would fix your drawing engine, because by doing you are losing > HUGE amounts of "intelligence" inside of the font that is used when > rendering at smaller point

Re: [iText-questions] get link javascript action

2008-07-08 Thread 1T3XT info
Federico Alba wrote: > It seems not...this does not give you the right to talk to me like > you're talking to an idiot... In Dutch we have a saying: "een gegeven paard niet in de mond kijken." Literally translated, this sounds like: "you shouldn't look into the mouth of the horse you were given."

Re: [iText-questions] 2 layers for colored and greyed content

2008-07-08 Thread wasegraves
-- Original message -- From: <[EMAIL PROTECTED]> Have you compiled and executed the LayerMembership example in Chapter 12, page 381, in the book? You should be able to modify that example to get a start on learning how to solve your problem. OTOH, if you don't w

Re: [iText-questions] get link javascript action

2008-07-08 Thread Federico Alba
> It didn't occur to you that you could also REPLACE the A key It seems not...this does not give you the right to talk to me like you're talking to an idiot...and this is the second time you do it. I never forced you to answer if you didn't want to...I just askedmaybe those weren't the smarte

Re: [iText-questions] 2 layers for colored and greyed content

2008-07-08 Thread philipp.stein
Ok, I will study again. Now that I know that there is a solution, I will find it. :) (I didn't believed in that for a while) Anyway, thanks a lot for your help. Bye -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von 1T3XT info Gesendet: Dienstag,

Re: [iText-questions] 2 layers for colored and greyed content

2008-07-08 Thread 1T3XT info
[EMAIL PROTECTED] wrote: > No, I'm only a trainee. So was I when I started my carreer in the IT sector. I wasn't paid for my work. That was 12 years ago; apparently nothing has changed, because: > Do you have any code example how I can achieve this? Do I send the invoice to Cap Gemini? Do I send

Re: [iText-questions] 2 layers for colored and greyed content

2008-07-08 Thread philipp.stein
No, I'm only a trainee. Hey, that's exactly what I'm trying to achieve. Not only with bars, I will also have highlighted text, but I think that will be done in the same manner. Do you have any code example how I can achieve this? Thanks a lot for your help. -Ursprüngliche Nachricht- V

Re: [iText-questions] 2 layers for colored and greyed content

2008-07-08 Thread 1T3XT info
[EMAIL PROTECTED] wrote: Great help, thanks! Could you please explain me how I can toggle between 2 layers, or whatever, over multiple pages? I'm trying to find a solution for this since 2 days, I'm stumped. Wow, I hope you don't charge by the hour. By the way, are you looking to achieve some

Re: [iText-questions] 2 layers for colored and greyed content

2008-07-08 Thread philipp.stein
Great help, thanks! Could you please explain me how I can toggle between 2 layers, or whatever, over multiple pages? I'm trying to find a solution for this since 2 days, I'm stumped. -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von 1T3XT info G

[iText-questions] Certificate chain

2008-07-08 Thread KrazySmile
I posted in ItextSharp mailing list, but didnt help me there, maybe someone here can. Im using X509Chain class to get the System.Security.Cryptography.X509Certificates.X509Certificate2 chain and then convert it to Org.BouncyCastle.X509.X509Certificate. im having some troubles getting this to wo

Re: [iText-questions] 2 layers for colored and greyed content

2008-07-08 Thread 1T3XT info
[EMAIL PROTECTED] wrote: > > Thanks for the hint with the book example. I think it helped me a little > bit. > > My problem is, that I have a lot of green/red text and tables over many > pages, and I want to be able to toggle in the pdf between a colored and a > greyed version. > So I first cre

Re: [iText-questions] get link javascript action

2008-07-08 Thread 1T3XT info
Federico Alba wrote: > Anywaywhen I try the following: > > UriStr = "http://www.google.com";; > string ActionString = "app.launchURL('" + UriStr + "', true)"; > PdfAction action = PdfAction.JavaScript(ActionString, copy); > annot.PutEx(PdfName.JAVASCRIPT, action); > > it still goes to the ol

Re: [iText-questions] get link javascript action

2008-07-08 Thread Federico Alba
> > Yes, if you were a surgeon I wouldn't let you operate. All right then...I'm glad I 'm not a surgeon!! > Doesn't it occur to you that "PdfCopy extends PdfWriter"??? Hem...I should have examined more carefully the library...Sorry Anywaywhen I try the following: UriStr = "http://www.g

Re: [iText-questions] 2 layers for colored and greyed content

2008-07-08 Thread philipp.stein
Thanks for the hint with the book example. I think it helped me a little bit. My problem is, that I have a lot of green/red text and tables over many pages, and I want to be able to toggle in the pdf between a colored and a greyed version. So I first create a colored Version and write it to "pd

Re: [iText-questions] get link javascript action

2008-07-08 Thread 1T3XT info
Federico Alba wrote: > I tried to use > > PdfAction action = PdfAction.JavaScript(ActionString, ?) > > but I 'm not using PdfWriter, I'm using PdfCopy...the argument is not > optional > > Am I missing something? Yes, if you were a surgeon I wouldn't let you operate. Doesn't it occur to yo

Re: [iText-questions] get link javascript action

2008-07-08 Thread Federico Alba
I tried to use PdfAction action = PdfAction.JavaScript(ActionString, ?) but I 'm not using PdfWriter, I'm using PdfCopy...the argument is not optional Am I missing something? Thanks Federico - Sponsored by: SourceForge.n

Re: [iText-questions] lot of space in pdf when generate using iText

2008-07-08 Thread 1T3XT info
Sumedha Aranke wrote: > Thanx. > > Can u tell me, which version u r using, so that I'll try to match with > that. I'm using the SNAPSHOT version of iText 2.1.3 from the day before yesterday, if you can't find that version 2.1.2 will probably be fine as well. -- This answer is provided by 1T3XT B

Re: [iText-questions] lot of space in pdf when generate using iText

2008-07-08 Thread Sumedha Aranke
Thanx. Can u tell me, which version u r using, so that I'll try to match with that. Regards Sumedha Aranke -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 1T3XT info Sent: Tuesday, July 08, 2008 12:31 PM To: Post all your questions about iText here Su

Re: [iText-questions] get link javascript action

2008-07-08 Thread 1T3XT info
Federico Alba wrote: > All right...I almost did itI found the right key ...it was */A/*. > You put me in the right direction > > I managed to change the URI of the link to another one...but If I change > the action to */_app.launchURL(URL, true)_/* > the link doesn't work...I think it expect

Re: [iText-questions] get link javascript action

2008-07-08 Thread Federico Alba
I forgot a piece of code...this is the correct code: for (int i=1; i <= reader.NumberOfPages ;i++) { PdfDictionary pageDic = reader.GetPageN(i); // Gets all the annots in the page if (pageDic.Get(PdfName.ANNOTS) != null) { PdfArray annots = (PdfArray) PdfReader.GetPdfObje

Re: [iText-questions] get link javascript action

2008-07-08 Thread Federico Alba
All right...I almost did itI found the right key ...it was *A*. You put me in the right direction I managed to change the URI of the link to another one...but If I change the action to *app.launchURL(URL, true)* the link doesn't work...I think it expects a url action instead of that. Should I

Re: [iText-questions] issue with line spacing when converting HTML into PDF using HTMLWorker

2008-07-08 Thread 1T3XT info
rajeshkatkam wrote: > can you give me an example how to use column text in my code > http://1t3xt.info/examples/browse/?page=example&id=347 public static boolean addText(String s, PdfContentByte canvas, float[] f, float size, boolean simulate) throws DocumentException, IOExceptio

Re: [iText-questions] issue with line spacing when converting HTML into PDF using HTMLWorker

2008-07-08 Thread rajeshkatkam
Paulo Soares wrote: > > He may use automatic leading. Will work with any size if using > ColumnText to place the objects. > > Paulo > >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On >> Behalf Of 1T3XT info >> Sent: Tuesday, July 08, 2008 9:45 AM >>

Re: [iText-questions] issue with line spacing when converting HTML into PDF using HTMLWorker

2008-07-08 Thread Paulo Soares
He may use automatic leading. Will work with any size if using ColumnText to place the objects. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of 1T3XT info > Sent: Tuesday, July 08, 2008 9:45 AM > To: Post all your questions about iText he

Re: [iText-questions] issue with line spacing when converting HTML into PDF using HTMLWorker

2008-07-08 Thread 1T3XT info
rajeshkatkam wrote: > I applied leading with maximum fontsize, but when the text has less size > the gap between lines is higher than the expected Well, you can't have everything... You'd have to dig deep inside iText to tune this on a PdfLine basis. That's outside the scope of iText. -- This a

Re: [iText-questions] issue with line spacing when converting HTML into PDF using HTMLWorker

2008-07-08 Thread rajeshkatkam
1T3XT info wrote: > > rajeshkatkam wrote: >> Hello, >> In my html I have multiple span tags which may contain different >> fontsizes. How can i apply multiple leadings for the paragraph tag > > You'll have to make a choice. > For instance find the maximum leading and apply that one. > -- >

Re: [iText-questions] get link javascript action

2008-07-08 Thread 1T3XT info
Federico Alba wrote: > I tried > PdfObject URL = annot.Get(PdfName.URL); > > but I get NULL What other keys are there in the dictionary? > Another question...I'm using pdfcopy to copy the original to a new > oneafter I find the URL and change the actionHow can I put the > new annotatio

Re: [iText-questions] get link javascript action

2008-07-08 Thread Federico Alba
> > Instead of reader.getLinks(page); > use reader.getPageN(page); > and get the ANNOTS. > > Loop over these Annotations and check for LINK annotations. > In these link dictionaries, you'll find the actions with the Thanks for the replyI did what you suggestedI looped trough the annotatio

Re: [iText-questions] bug in iText? WAS: problem with Agency FB font, iText Graphics2D, and scaling

2008-07-08 Thread Leonard Rosenthol
On Jul 7, 2008, at 10:18 AM, Jason Boehle wrote: > Unfortunately, this is how the drawing engine in our product works, > so changing it is not really an option. > Then I would fix your drawing engine, because by doing you are losing HUGE amounts of "intelligence" inside of the font that

Re: [iText-questions] get link javascript action

2008-07-08 Thread 1T3XT info
Federico Alba wrote: > The problem is that I can't find a way to read the URL associated to a > link. I tried to run a javascript that adds an action to the link with > *setAction* but when the document is opened in Acrobat Reader, it tells > me I'm not allowed to do that. Instead of reader.get

Re: [iText-questions] issue with line spacing when converting HTML into PDF using HTMLWorker

2008-07-08 Thread 1T3XT info
rajeshkatkam wrote: > Hello, > In my html I have multiple span tags which may contain different > fontsizes. How can i apply multiple leadings for the paragraph tag You'll have to make a choice. For instance find the maximum leading and apply that one. -- This answer is provided by 1T3XT BVBA

[iText-questions] get link javascript action

2008-07-08 Thread Federico Alba
Hello...I'm writing again to be more specific. I would like to get the URL or the Javascript associated to an remote link in a pdf and replace it with the line *app.launchURL(URL, true)* to open it in a new window. The problem is that I can't find a way to read the URL associated to a link. I trie

Re: [iText-questions] issue with line spacing when converting HTML into PDF using HTMLWorker

2008-07-08 Thread rajeshkatkam
1T3XT info wrote: > > rajeshkatkam wrote: >> Hello, I am using iTextsharp to convert HTMl to PDF using HTMLWorker and >> It works fine with the normal font sizes. But when i converted the text >> with font size around 30, the text in the pdf was shrunk and there is no >> space between two li

Re: [iText-questions] pdf table header issues

2008-07-08 Thread 1T3XT info
barik wrote: > Hello > > I am adding 3 header tables using writeSelectedRows() and adding the > maintable using document.add() > However the header table is overlapping by the maintable. > > Help required ..Thanks in advnace.. Duh! You have to make sure the margins are set correctly for the Doc

Re: [iText-questions] issue with line spacing when converting HTML into PDF using HTMLWorker

2008-07-08 Thread 1T3XT info
rajeshkatkam wrote: > Hello, I am using iTextsharp to convert HTMl to PDF using HTMLWorker and > It works fine with the normal font sizes. But when i converted the text > with font size around 30, the text in the pdf was shrunk and there is no > space between two lines. And also bottom of the to

Re: [iText-questions] lot of space in pdf when generate using iText

2008-07-08 Thread 1T3XT info
Sumedha Aranke wrote: > Hi, > > I am not able to resolve it. Can u please tell me, why this is > happening. > Attaching my generated PDF FYR. > > I am currently using iText-2.0.7. > > > Your response was : > You need to make a small change in your code: > > Sumedha Aranke wrote: >>> for(int i