From clkunzang at gmail.com Thu Aug 21 22:01:20 2008 From: clkunzang at gmail.com (Chhi'med Kunzang) Date: Thu, 21 Aug 2008 16:01:20 -0600 Subject: [cl-typesetting-devel] (no subject) Message-ID: <59E50E50-1541-44DD-8F51-633E3F2F01B2@gmail.com> Hi, I'm new to cl-typesetting, and I'm trying to get a feel for how everything works. I've looked for documentation and examples on the web, but can't find much. So, first off -- can anyone point me to anything besides the source that might help with getting oriented? Second, the concrete task I'm attempting to accomplish is to put text hyperlinks in a PDF. My understanding is that this needs to be done by using a hyperlink annotation -- which only provides a bounding box for the area which should provide the link. I think I can do this with cl-pdf, but I need to be able to work out the coordinates for the bounding box of a given piece of text -- in order to accomplish what I want to do. Can anyone advise me as to how best to accomplish this? Ideally, there would be a high-level construct to make this possible, and I'm happy to try to implement such a thing once I understand how to do so. Any advice will be appreciated. Thanks, Chhi'm?d From gwking at metabang.com Fri Aug 22 01:31:53 2008 From: gwking at metabang.com (Gary King) Date: Thu, 21 Aug 2008 21:31:53 -0400 Subject: [cl-typesetting-devel] hyperlinks In-Reply-To: <59E50E50-1541-44DD-8F51-633E3F2F01B2@gmail.com> References: <59E50E50-1541-44DD-8F51-633E3F2F01B2@gmail.com> Message-ID: <5E412004-8B69-41D5-A9B9-C75370FE7142@metabang.com> Hi, Hyperlink support is very high on my wishlist for CL-PDF/Typesetting. I'm not aware of any implementation yet. Good luck! -- Gary Warren King, metabang.com Cell: (413) 559 8738 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM From marc.battyani at fractalconcept.com Fri Aug 22 10:48:51 2008 From: marc.battyani at fractalconcept.com (Marc Battyani) Date: Fri, 22 Aug 2008 12:48:51 +0200 Subject: [cl-typesetting-devel] hyperlinks In-Reply-To: <5E412004-8B69-41D5-A9B9-C75370FE7142@metabang.com> References: <59E50E50-1541-44DD-8F51-633E3F2F01B2@gmail.com> <5E412004-8B69-41D5-A9B9-C75370FE7142@metabang.com> Message-ID: <48AE9993.3000409@fractalconcept.com> Gary King wrote: > Hi, > > Hyperlink support is very high on my wishlist for CL-PDF/Typesetting. > I'm not aware of any implementation yet. You mean something like pdf:add-URI-link? ;-) There is even an example that uses it (on the fractal logo): http://www.fractalconcept.com:8000/fcweb/download/ex7.pdf Not yet used in cl-typesetting though IIRC. Marc From gwking at metabang.com Fri Aug 22 11:44:09 2008 From: gwking at metabang.com (Gary King) Date: Fri, 22 Aug 2008 07:44:09 -0400 Subject: [cl-typesetting-devel] hyperlinks In-Reply-To: <48AE9993.3000409@fractalconcept.com> References: <59E50E50-1541-44DD-8F51-633E3F2F01B2@gmail.com> <5E412004-8B69-41D5-A9B9-C75370FE7142@metabang.com> <48AE9993.3000409@fractalconcept.com> Message-ID: > You mean something like pdf:add-URI-link? ;-) Oh, that! Great! -- Gary Warren King, metabang.com Cell: (413) 559 8738 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM From clkunzang at gmail.com Fri Aug 22 23:01:36 2008 From: clkunzang at gmail.com (Chhi'med Kunzang) Date: Fri, 22 Aug 2008 17:01:36 -0600 Subject: [cl-typesetting-devel] hyperlinks In-Reply-To: <48AE9993.3000409@fractalconcept.com> References: <59E50E50-1541-44DD-8F51-633E3F2F01B2@gmail.com> <5E412004-8B69-41D5-A9B9-C75370FE7142@metabang.com> <48AE9993.3000409@fractalconcept.com> Message-ID: <74A21267-B484-4472-9654-AF6AAF4FF63F@gmail.com> > You mean something like pdf:add-URI-link? ;-) Yes, although I will want internal links, so PDF:ADD-LINK. The issue is that I want to automatically extract the 'box' parameters from the enclosed text. In the example program, this is relatively easy because you have a graphic of known size. I would like to say something like, (with-link (destination) "This is the link test.") I haven't studied cl-typesetting enough yet to know what the right syntactic idiom to use would be -- but the point is that I don't want to have to manually calculate the box information. Any suggestions? Thanks, Chhi'm?d ps: By the way, cl-pdf is very useful (and cl-typesetting is looking pretty good too so far), thanks. From clkunzang at gmail.com Mon Aug 25 19:34:27 2008 From: clkunzang at gmail.com (Chhi'med Kunzang) Date: Mon, 25 Aug 2008 13:34:27 -0600 Subject: [cl-typesetting-devel] hyperlinks In-Reply-To: <48AE9993.3000409@fractalconcept.com> References: <59E50E50-1541-44DD-8F51-633E3F2F01B2@gmail.com> <5E412004-8B69-41D5-A9B9-C75370FE7142@metabang.com> <48AE9993.3000409@fractalconcept.com> Message-ID: <7B80C375-FAE2-4021-A070-67F8E4EF369D@gmail.com> So does anyone have any thoughts about how to capture this information? As far as I can tell, it would require wrapping all the calls to PDF functions which manipulate the current document position/ coordinates (like PDF:MOVE-TO) -- so that they update some Lisp state (probably sepcial variables). Am I missing something? If so, what? If not, can anyone at least outline what they think would need to be done? (i.e., which functions would need to be wrapped)? Thanks, Chhi'm?d From marc.battyani at fractalconcept.com Tue Aug 26 01:10:25 2008 From: marc.battyani at fractalconcept.com (Marc Battyani) Date: Tue, 26 Aug 2008 03:10:25 +0200 Subject: [cl-typesetting-devel] hyperlinks In-Reply-To: <7B80C375-FAE2-4021-A070-67F8E4EF369D@gmail.com> References: <59E50E50-1541-44DD-8F51-633E3F2F01B2@gmail.com> <5E412004-8B69-41D5-A9B9-C75370FE7142@metabang.com> <48AE9993.3000409@fractalconcept.com> <7B80C375-FAE2-4021-A070-67F8E4EF369D@gmail.com> Message-ID: <48B35801.2070003@fractalconcept.com> Hi Chhi'm?d, Chhi'med Kunzang wrote: > So does anyone have any thoughts about how to capture this > information? As far as I can tell, it would require wrapping all the > calls to PDF functions which manipulate the current document > position/coordinates (like PDF:MOVE-TO) -- so that they update some > Lisp state (probably sepcial variables). Am I missing something? If > so, what? If not, can anyone at least outline what they think would > need to be done? (i.e., which functions would need to be wrapped)? I can't help you on this right now (I'm currently moving to Boston), but I will look at this next week. Marc