Hi Leonard,

I am trying to mimic behavior of the MS Word client. In Word it is possible to 
have whitespace underlined. Currently my workaround is to use a underscore, and 
stretch it to be the size of the whitespace I need underlined. But I would 
rather use the methods in the Chunk class since they are more robust and allow 
for double, and thick underlining.

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] 
Sent: Wednesday, July 07, 2010 8:04 AM
To: [email protected]
Subject: iText-questions Digest, Vol 50, Issue 12

Send iText-questions mailing list submissions to
        [email protected]

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
        [email protected]

You can reach the person managing the list at
        [email protected]

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


Today's Topics:

   1. Re: How to underline whitespace ? (Leonard Rosenthol)
   2. Re: AddFileAttachment (merco)
   3. Re: How to underline whitespace ? (1T3XT info)
   4. Re: AddFileAttachment (merco)
   5. Howto get X/Y coordinates of a open PDF
      (Francisco Javier Morales L?pez de Gamarra)
   6. External timestamp token (Hynek Hor?k)
   7. Setting background for PdfPCell (?ukasz Badura)


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

Message: 1
Date: Tue, 6 Jul 2010 16:08:17 -0700
From: Leonard Rosenthol <[email protected]>
Subject: Re: [iText-questions] How to underline whitespace ?
To: Post all your questions about iText here
        <[email protected]>
Message-ID:
        <d23d6b9e57d654429a9ab6918caceaa97d229aa...@nambx02.corp.adobe.com>
Content-Type: text/plain; charset="us-ascii"

Why would you underline whitespace?

From: Adam Mork [mailto:[email protected]]
Sent: Tuesday, July 06, 2010 7:27 PM
To: [email protected]
Subject: [iText-questions] How to underline whitespace ?

Hi,

I cannot find a way to underline whitespace by itself. It only works if there 
is a non-whitespace chunk following the whitespace chunk in the phrase. Is this 
expected behavior ? Any workarounds ?

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

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

Message: 2
Date: Tue, 6 Jul 2010 23:29:26 -0700 (PDT)
From: merco <[email protected]>
Subject: Re: [iText-questions] AddFileAttachment
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii


I've upgraded my code to use ver 5.0.2.0
but the problem is still here.

I've also tried different code, without succes:
Dim Fn As String = IO.Path.GetFileName(Allegato)
        Dim Fn1 As String = ""
        Dim B() As Byte
        Dim ePDF As System.Text.Encoding =
System.Text.Encoding.GetEncoding("utf-16BE")
        B = ePDF.GetBytes(Fn)
        Fn1 = ePDF.GetString(B)
        Dim Fs As PdfFileSpecification =
PdfFileSpecification.FileEmbedded(_Dest.Writer, Allegato, Fn, Nothing)

       Fs.SetUnicodeFileName(Fn1, True)
        Fs.MultiByteFileName = B
        _Dest.AddFileAttachment(Fn1, Fs)


Is there a way to access Names and embeddedfiles with itext ? I'm wondering
if i can change the name after inserting the attachment.
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/AddFileAttachment-tp2279623p2280528.html
Sent from the iText - General mailing list archive at Nabble.com.



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

Message: 3
Date: Wed, 07 Jul 2010 08:52:56 +0200
From: 1T3XT info <[email protected]>
Subject: Re: [iText-questions] How to underline whitespace ?
To: Post all your questions about iText here
        <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Leonard Rosenthol wrote:
> Why would you underline whitespace?

The "real" question may be: how do I create a LineSeparator?
For instance: in a TOC you have a title on one side, and a page number 
on the other side. In between, there can be a dotted line (in iText, 
this would be created by a DottedLineSeparator).
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info



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

Message: 4
Date: Wed, 7 Jul 2010 00:15:03 -0700 (PDT)
From: merco <[email protected]>
Subject: Re: [iText-questions] AddFileAttachment
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii


now i'm trying to change the name in this way...
 Dim cat As PdfDictionary = _reader.Catalog
        Dim names As PdfDictionary =
PdfReader.GetPdfObject(cat.Get(PdfName.NAMES))
        If Not IsNothing(names) Then
            Dim files As PdfDictionary =
PdfReader.GetPdfObject(names.Get(PdfName.EMBEDDEDFILES))
            Dim nomi As PdfArray =
PdfReader.GetPdfObject(files.Get(PdfName.NAMES))
            If Not IsNothing(files) Then
                nomi.Remove(0)
                Dim Ustr As PdfString = New PdfString("Purchase Order.pdf",
iTextSharp.text.pdf.PdfObject.TEXT_UNICODE)
                nomi.AddFirst(Ustr)
            End If
        End If


But the pdfString is always non UnicodeBE... Why ?

-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/AddFileAttachment-tp2279623p2280560.html
Sent from the iText - General mailing list archive at Nabble.com.



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

Message: 5
Date: Wed, 7 Jul 2010 10:24:24 +0200
From: Francisco Javier Morales L?pez de Gamarra
        <[email protected]>
Subject: [iText-questions] Howto get X/Y coordinates of a open PDF
To: <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"


Hello, I am making a simple application that show the X/Y coordinate of the
mouse when it is over a opened PDF file.
 
How can I do it?, how can get the X/Y coordenates of the mouse pointer when
it is over it??, and capture it when the user do click???
 
I dont want to get the XY cooridnates of a text ... I need to get the X/Y
coordinates where the user make click in the PDF for modify it and place a 
rectangle....
I have made the rectangle function and It works fine, but I need to know where 
the user want
to put the rectangule ..., now the user simply write it on a text box (X/Y)
and works fine, but I would like to automatizate it and that if the user
made click over the PDF capture the XY coordinates of the possitionand fill
in the textbox automatically the x/y coordinates.
 
Please, any help would be very aprecciated
 
Thanks a lot---Francisco Javier Morales L?pez de Gamarra                        
                  
_________________________________________________________________
Agudiza los sentidos que viene un nuevo Messenger ?est?s listo?
http://explore.live.com/windows-live-messenger
-------------- next part --------------
An HTML attachment was scrubbed...

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

Message: 6
Date: Wed, 07 Jul 2010 14:10:17 +0200
From: Hynek Hor?k <[email protected]>
Subject: [iText-questions] External timestamp token
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-2; format=flowed

Hello,

I have some problems with using iText to sign PDF with timestamp. I have 
own routines to obtain timestamp token, but i don't know how to use this 
token (DER encoded) with getEncodedPKCS7 - in general, i want to submit 
token as a byte[] value, so i don't want to use getTimeStampToken... Is 
there any possibility to do that?

Thanks in advance,

HH



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

Message: 7
Date: Wed, 07 Jul 2010 15:03:37 +0200
From: ?ukasz Badura <[email protected]>
Subject: [iText-questions] Setting background for PdfPCell
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,

Recently I started using iText with JRuby and I really like the library
(it's way better than the pure Ruby libraries available). Currently I'm
working on a piece of code to generate a PDF page with index cards on
it. In order to lay out the cards on the page I thought I could create a
table, and then place the index cards' contents into each cell.

While that seems to work I also need to set an image as a background for
each of the cells under the text content.

After some reading I know I have to create a class which implements the
PdfPCellEvent interface. My initial cellLayout method of that class
looks more or less like this (hope you don't mind the Ruby code, the
method calls are almost the same):

  def cellLayout(cell,rect,canvas)
    cb = canvas[PdfPTable::BACKGROUNDCANVAS]
    card = Image.getInstance("lib/cards/index_card_72.jpg")
    card.scaleToFit(298, 210)
    card.setAbsolutePosition(cell.getTop, cell.getRight)
    cb.addImage(card)
  end

The image appears below the tables. What is the best approach in
positioning those images ? I tried different approaches (with using the
rect's and cell's coordinates with no luck. I would appreciate any help
or suggestions regarding the optimal way of solving this.

Best regards,
- -- 
?ukasz Badura
E-mail: [email protected] | Jabber: [email protected]
WWW: http://www.badurowie.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkw0eykACgkQOw4sRDzkBPnXYACaAvoxNCPaC1t/FXCYIoRKOrUY
1T4AnA0heCmRuuUtGw7tROLRVOG64nWE
=XaA8
-----END PGP SIGNATURE-----



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

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first

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

_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions


End of iText-questions Digest, Vol 50, Issue 12
***********************************************

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
iText-questions mailing list
[email protected]
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