From divanov at aha.ru Thu Feb 1 11:00:23 2007 From: divanov at aha.ru (Dmitriy Ivanov) Date: Thu, 1 Feb 2007 14:00:23 +0300 Subject: [cl-pdf-devel] Binary streams References: <53259.67.66.214.132.1170276170.squirrel@reedlarkeygroup.com> <07a501c7457a$0135d3e0$1402a8c0@marcx2><33360.67.66.214.132.1170279023.squirrel@reedlarkeygroup.com> <33408.67.66.214.132.1170279339.squirrel@reedlarkeygroup.com> Message-ID: <001c01c745f0$304c41c0$8100a8c0@digo> Hello Jonathon, | pdf-binary does not work. I still get this: | The actual error is around line 12 Thanks. It looks like SBCL signals on the following stuff: (WRITE-LINE "%PDF-1.4" *pdf-stream*) That means that SBCL cannot simply print to the stream opened with :element-type '(unsigned-byte 8) Therefore, :pdf-binary does not apply to SBCL. As a reminder, the latest interpretation of :pdf-binary is "If your Lisp implementation accepts writing base characters to binary streams". -- Sincerely, Dmitriy Ivanov From attila.lendvai at gmail.com Thu Feb 1 11:14:43 2007 From: attila.lendvai at gmail.com (Attila Lendvai) Date: Thu, 1 Feb 2007 12:14:43 +0100 Subject: [cl-pdf-devel] Binary streams In-Reply-To: <001c01c745f0$304c41c0$8100a8c0@digo> References: <53259.67.66.214.132.1170276170.squirrel@reedlarkeygroup.com> <07a501c7457a$0135d3e0$1402a8c0@marcx2> <33360.67.66.214.132.1170279023.squirrel@reedlarkeygroup.com> <33408.67.66.214.132.1170279339.squirrel@reedlarkeygroup.com> <001c01c745f0$304c41c0$8100a8c0@digo> Message-ID: > That means that SBCL cannot simply print to the stream opened with > > :element-type '(unsigned-byte 8) sbcl needs :element-type :default (or not specified at all) for bivalent streams. if only i had the nerves to debug this cl-pdf version i have that i've converted to use fully binary streams... it runs fine, but the resulting pdf is bugous. i must have screwed up some write call when converted it... :( -- - attila "- The truth is that I've been too considerate, and so became unintentionally cruel... - I understand. - No, you don't understand! We don't speak the same language!" (Ingmar Bergman - Smultronst?llet) From marc.battyani at fractalconcept.com Thu Feb 1 16:58:50 2007 From: marc.battyani at fractalconcept.com (Marc Battyani) Date: Thu, 1 Feb 2007 17:58:50 +0100 Subject: [cl-pdf-devel] Binary streams References: <53259.67.66.214.132.1170276170.squirrel@reedlarkeygroup.com><07a501c7457a$0135d3e0$1402a8c0@marcx2><33360.67.66.214.132.1170279023.squirrel@reedlarkeygroup.com><33408.67.66.214.132.1170279339.squirrel@reedlarkeygroup.com><001c01c745f0$304c41c0$8100a8c0@digo> Message-ID: <001e01c74622$425b2390$1402a8c0@marcx2> "Attila Lendvai" wrote: >> That means that SBCL cannot simply print to the stream opened with >> >> :element-type '(unsigned-byte 8) > > sbcl needs :element-type :default (or not specified at all) for > bivalent streams. > > if only i had the nerves to debug this cl-pdf version i have that i've > converted to use fully binary streams... > > it runs fine, but the resulting pdf is bugous. i must have screwed up > some write call when converted it... :( Let's try first to make the current version work and then I will create a cl-pdf-dev branch to try hazardous things ;-) Marc From jmckitrick at reedlarkeygroup.com Fri Feb 2 16:23:50 2007 From: jmckitrick at reedlarkeygroup.com (Jonathon McKitrick) Date: Fri, 2 Feb 2007 11:23:50 -0500 (EST) Subject: [cl-pdf-devel] Underlines Message-ID: <33063.70.241.149.67.1170433430.squirrel@reedlarkeygroup.com> I'm trying to get some text to underline, with both pre- and post-decoration, but neither seems to work. Would someone point out what I have missed? (paragraph (:h-align :left :font *bold* :font-size *font-size* :left-margin 20 :post-decoration 'tt::decoration-underline) "Underline me") -- Jonathon McKitrick Reed Larkey Group From jmckitrick at reedlarkeygroup.com Sun Feb 4 23:23:42 2007 From: jmckitrick at reedlarkeygroup.com (Jonathon McKitrick) Date: Sun, 4 Feb 2007 18:23:42 -0500 (EST) Subject: [cl-pdf-devel] problem w/revision 130 Message-ID: <50749.68.44.154.215.1170631422.squirrel@reedlarkeygroup.com> Hi everyone, I can't get past this error: The variable pdf::*root-page* is unbound. I don't know how I solved this on my mac, it just suddenly started working, perhaps after several recompiles. I hate when that happens, because now I don't know how to *really* fix the problem on my other box. Could someone please help, or point in the right direction? I'm at my wits end getting this stuff to work with sbcl 1.0.2. Thanks in advance for your help. -- Jonathon McKitrick Reed Larkey Group From gwking at metabang.com Sun Feb 4 23:34:30 2007 From: gwking at metabang.com (Gary King) Date: Sun, 4 Feb 2007 18:34:30 -0500 Subject: [cl-pdf-devel] problem w/revision 130 In-Reply-To: <50749.68.44.154.215.1170631422.squirrel@reedlarkeygroup.com> References: <50749.68.44.154.215.1170631422.squirrel@reedlarkeygroup.com> Message-ID: Hi Jonathon, I need some more context to be able to help... Do you a small test case that creates the behavior? thanks, On Feb 4, 2007, at 6:23 PM, Jonathon McKitrick wrote: > Hi everyone, > > I can't get past this error: > > The variable pdf::*root-page* is unbound. > > I don't know how I solved this on my mac, it just suddenly started > working, perhaps after several recompiles. I hate when that happens, > because now I don't know how to *really* fix the problem on my > other box. > > Could someone please help, or point in the right direction? I'm at my > wits end getting this stuff to work with sbcl 1.0.2. > > Thanks in advance for your help. > > > -- > Jonathon McKitrick > Reed Larkey Group > > > > > > > _______________________________________________ > cl-pdf-devel site list > cl-pdf-devel at common-lisp.net > http://common-lisp.net/mailman/listinfo/cl-pdf-devel -- Gary Warren King, metabang.com Cell: (413) 885 9127 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM From jmckitrick at reedlarkeygroup.com Mon Feb 5 04:13:24 2007 From: jmckitrick at reedlarkeygroup.com (Jonathon McKitrick) Date: Sun, 4 Feb 2007 23:13:24 -0500 (EST) Subject: [cl-pdf-devel] problem w/revision 130 In-Reply-To: References: <50749.68.44.154.215.1170631422.squirrel@reedlarkeygroup.com> Message-ID: <50915.68.44.154.215.1170648804.squirrel@reedlarkeygroup.com> Thanks for your help, Gary. I think I've found the problem... in the typeset demo for writing content out to multiple pages, I found this line: (when pdf:*page* (finalize-page pdf:*page*)) I included it because it was in the example and seems to be required for multi-page layout. That's what's causing the problem. But without it, my last page is not output. I'm building content, then writing it out like this: (draw-pages content :margins '(72 88 72 72) :header header :footer footer) (when pdf:*page* (finalize-page pdf:*page*)) On Sun, February 4, 2007 6:34 pm, Gary King said: > Hi Jonathon, > > I need some more context to be able to help... Do you a small test > case that creates the behavior? > > thanks, > > On Feb 4, 2007, at 6:23 PM, Jonathon McKitrick wrote: > >> Hi everyone, >> >> I can't get past this error: >> >> The variable pdf::*root-page* is unbound. >> >> I don't know how I solved this on my mac, it just suddenly started >> working, perhaps after several recompiles. I hate when that happens, >> because now I don't know how to *really* fix the problem on my >> other box. >> >> Could someone please help, or point in the right direction? I'm at my >> wits end getting this stuff to work with sbcl 1.0.2. >> >> Thanks in advance for your help. >> >> >> -- >> Jonathon McKitrick >> Reed Larkey Group >> >> >> >> >> >> >> _______________________________________________ >> cl-pdf-devel site list >> cl-pdf-devel at common-lisp.net >> http://common-lisp.net/mailman/listinfo/cl-pdf-devel > > -- > Gary Warren King, metabang.com > Cell: (413) 885 9127 > Fax: (206) 338-4052 > gwkkwg on Skype * garethsan on AIM > > > > > -- Jonathon McKitrick Reed Larkey Group From divanov at aha.ru Mon Feb 5 09:02:33 2007 From: divanov at aha.ru (Dmitriy Ivanov) Date: Mon, 5 Feb 2007 12:02:33 +0300 Subject: [cl-pdf-devel] problem w/revision 130 References: <50749.68.44.154.215.1170631422.squirrel@reedlarkeygroup.com> Message-ID: <000001c74904$83ccc380$8100a8c0@digo> Hello Jonathon, | Hi everyone, | | I can't get past this error: | | The variable pdf::*root-page* is unbound. | | I don't know how I solved this on my mac, it just suddenly started | working, perhaps after several recompiles. I hate when that happens, | because now I don't know how to *really* fix the problem on my other | box. Have you tried to recompile all source file of your application? -- Sincerely, Dmitriy Ivanov lisp.ystok.ru From jmckitrick at reedlarkeygroup.com Mon Feb 5 13:26:10 2007 From: jmckitrick at reedlarkeygroup.com (Jonathon McKitrick) Date: Mon, 5 Feb 2007 08:26:10 -0500 (EST) Subject: [cl-pdf-devel] problem w/revision 130 In-Reply-To: <000001c74904$83ccc380$8100a8c0@digo> References: <50749.68.44.154.215.1170631422.squirrel@reedlarkeygroup.com> <000001c74904$83ccc380$8100a8c0@digo> Message-ID: <49200.68.44.154.215.1170681970.squirrel@reedlarkeygroup.com> On Mon, February 5, 2007 4:02 am, Dmitriy Ivanov said: > Hello Jonathon, > > | Hi everyone, > | > | I can't get past this error: > | > | The variable pdf::*root-page* is unbound. > | > | I don't know how I solved this on my mac, it just suddenly started > | working, perhaps after several recompiles. I hate when that happens, > | because now I don't know how to *really* fix the problem on my other > | box. > > Have you tried to recompile all source file of your application? I'll try it, thanks. -- Jonathon McKitrick Reed Larkey Group From jmckitrick at reedlarkeygroup.com Mon Feb 5 16:24:48 2007 From: jmckitrick at reedlarkeygroup.com (Jonathon McKitrick) Date: Mon, 5 Feb 2007 11:24:48 -0500 (EST) Subject: [cl-pdf-devel] problem w/revision 130 In-Reply-To: <000001c74904$83ccc380$8100a8c0@digo> References: <50749.68.44.154.215.1170631422.squirrel@reedlarkeygroup.com> <000001c74904$83ccc380$8100a8c0@digo> Message-ID: <49594.68.44.154.215.1170692688.squirrel@reedlarkeygroup.com> On Mon, February 5, 2007 4:02 am, Dmitriy Ivanov said: > Hello Jonathon, > > | Hi everyone, > | > | I can't get past this error: > | > | The variable pdf::*root-page* is unbound. > | > | I don't know how I solved this on my mac, it just suddenly started > | working, perhaps after several recompiles. I hate when that happens, > | because now I don't know how to *really* fix the problem on my other > | box. > > Have you tried to recompile all source file of your application? That seems to solve the problem, Dmitriy. Thanks very much. What would be the next step to make binary streams work on sbcl? -- Jonathon McKitrick Reed Larkey Group From marc.battyani at fractalconcept.com Mon Feb 5 18:15:48 2007 From: marc.battyani at fractalconcept.com (Marc Battyani) Date: Mon, 5 Feb 2007 19:15:48 +0100 Subject: [cl-pdf-devel] revision 133 References: <50749.68.44.154.215.1170631422.squirrel@reedlarkeygroup.com><000001c74904$83ccc380$8100a8c0@digo> <49594.68.44.154.215.1170692688.squirrel@reedlarkeygroup.com> Message-ID: <112001c74951$a9553220$1402a8c0@marcx2> Hi, If the current revision (133) is OK. I will make a cl-pdf-dev branch from it so that major changes, like binary only mode, will not break the released version. Marc From gwking at metabang.com Tue Feb 6 02:56:43 2007 From: gwking at metabang.com (Gary King) Date: Mon, 5 Feb 2007 21:56:43 -0500 Subject: [cl-pdf-devel] revision 133 In-Reply-To: <112001c74951$a9553220$1402a8c0@marcx2> References: <50749.68.44.154.215.1170631422.squirrel@reedlarkeygroup.com><000001c74904$83ccc380$8100a8c0@digo> <49594.68.44.154.215.1170692688.squirrel@reedlarkeygroup.com> <112001c74951$a9553220$1402a8c0@marcx2> Message-ID: <2B40EADD-6D9B-4154-8341-C363210ABB11@metabang.com> Hi Marc, I just checked in a correction to the package file in iterate (I did an eval-when but used :evaluate instead of :execute). On Feb 5, 2007, at 1:15 PM, Marc Battyani wrote: > Hi, > > If the current revision (133) is OK. I will make a cl-pdf-dev > branch from it so that major changes, like binary only mode, will > not break the released version. > > Marc > > > _______________________________________________ > cl-pdf-devel site list > cl-pdf-devel at common-lisp.net > http://common-lisp.net/mailman/listinfo/cl-pdf-devel -- Gary Warren King, metabang.com Cell: (413) 885 9127 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM From brian.sorg at liberatinginsight.com Sat Feb 10 16:24:32 2007 From: brian.sorg at liberatinginsight.com (Brian Sorg) Date: Sat, 10 Feb 2007 11:24:32 -0500 Subject: [cl-pdf-devel] Using cl-pdf rev 134 with SBCL 1.0.2 Message-ID: <1171124672.12610.16.camel@melody.liberating> Please forgive me if this a redundant I have only been scanning the emails sent to the list recently, but I was experimenting with the latest SBCL version (1.0.2) and ran into the same error with writing to the streams that I believe was being discussed a week or two ago. The problem as was noted is that SBCL needs to specify the the element-type as :default when opening a bivalent stream. One solution to this is either to not include the :pdf-binary keyword in the features list. To turn this off comment out the line (push :pdf-binary *features*) in the config.lisp file. The code solution to this is to modify the write-document method in the pdf.lisp file as follows: ---------------------------------------------------------------------- (defmethod write-document ((filename pathname) &optional (document *document*)) (with-open-file (stream filename :direction :output :if-exists :supersede :element-type #+pdf-binary #+sbcl :default #-sbcl'(unsigned-byte 8) #-pdf-binary 'base-char :external-format +external-format+) (write-document stream document) filename)) ; indicate that operation succeeded ----------------------------------------------------------------------- In this case though it will be important to remember that if you feed write-document a stream that it will have to define the :element-type as above. With the above change I was able to successfully run the cl-pdf examples provided on Linux. I didn't test it on the windows release. I don't believe that I have access to check this in so if someone could take care of that or Marc if you would like to grant me permission I can do it? Have a great weekend. Brian Sorg Liberating Insight LLC brian.sorg at liberatinginsight.com From brian.sorg at liberatinginsight.com Sat Feb 10 23:13:38 2007 From: brian.sorg at liberatinginsight.com (Brian Sorg) Date: Sat, 10 Feb 2007 18:13:38 -0500 Subject: [cl-pdf-devel] SBCL 1.0.2 output streams Message-ID: <1171149218.17317.35.camel@melody.liberating> Thanks Marc for the login. I went ahead and committed the change to cl-pdf repository to fix the problem with SBCL 1.0.2 writing the output stream. Brian Sorg Liberating Insight LLC brian.sorg at liberatinginsight.com From jmckitrick at reedlarkeygroup.com Sun Feb 11 15:22:29 2007 From: jmckitrick at reedlarkeygroup.com (Jonathon McKitrick) Date: Sun, 11 Feb 2007 10:22:29 -0500 (EST) Subject: [cl-pdf-devel] SBCL 1.0.2 output streams In-Reply-To: <1171149218.17317.35.camel@melody.liberating> References: <1171149218.17317.35.camel@melody.liberating> Message-ID: <49642.68.44.154.215.1171207349.squirrel@reedlarkeygroup.com> On Sat, February 10, 2007 6:13 pm, Brian Sorg said: > > Thanks Marc for the login. > > I went ahead and committed the change to cl-pdf repository to fix the > problem with SBCL 1.0.2 writing the output stream. Thank you! This issue has been plaguing my upgrade plans for a while now. Well done! -- Jonathon McKitrick Reed Larkey Group From nedenis at gmail.com Thu Feb 15 14:20:57 2007 From: nedenis at gmail.com (Denis Mashkevich) Date: Thu, 15 Feb 2007 16:20:57 +0200 Subject: [cl-pdf-devel] Is cl-pdf-parser considered to be in usable state? Message-ID: <1ddc94910702150620l4a455b3el91c233a8f246cdf3@mail.gmail.com> Hi all, Is cl-pdf-parser considered to be in usable state? It gives me various errors on any pdf file I try to parse with it, including those generated by cl-pdf. Example 1 (docs.pdf from Peter Seibel's markup library, generated with cl-pdf): MARKUP> (parse-file "/Users/max/src/lib/gigamonkeys/markup-0.3/docs.pdf") No tag specified for one space of indentation [Condition of type SIMPLE-ERROR] Restarts: 0: [ABORT] Return to SLIME's top level. 1: [ABORT-BREAK] Reset this process 2: [ABORT] Kill this process Backtrace: 0: (INDENTED-PARAGRAPH-TAG '(INDENTATION 1)) 1: (READ-PARAGRAPH '(:P "/Font << /CLF142 10 0 R" #\Newline "/CLF141 9 0 R" #\Newline "/CLF140 8 0 R" #\Newline "/CLF139 7 0 R" #\Newline " >>")) 2: (READ-DOCUMENT '(PARSE-FILE "/Users/max/src/lib/gigamonkeys/markup-0.3 /docs.pdf")) 3: (PARSE-FILE "/Users/max/src/lib/gigamonkeys/markup-0.3/docs.pdf") 4: (CCL::CALL-CHECK-REGS 'PARSE-FILE) --more-- Example 2: MARKUP> (parse-file "/Users/max/Desktop/PDF 1.7Reference/pdf_reference_errata.pdf") Unexpected EOF at 1087:0 on stream when eof-character is { started at (526 100) [Condition of type SIMPLE-ERROR] Restarts: 0: [ABORT] Return to SLIME's top level. 1: [ABORT-BREAK] Reset this process 2: [ABORT] Kill this process Backtrace: 0: (PEEK-CHARACTER #) 1: (READ-CHARACTER #) 2: (READ-NAME #) 3: (READ-TAG #) 4: (READ-TAG #) 5: (READ-TAG #) 6: (READ-TAG #) 7: (READ-TAG "??'Cot? ?6\"w;(r)-?f??= ?X??m8s?$?;|?B????TV?6%3"???r????OOO????%%???????????A???|p?y?9E? jF????(c)???bu?????? From jmckitrick at reedlarkeygroup.com Fri Feb 23 10:05:32 2007 From: jmckitrick at reedlarkeygroup.com (Jonathon McKitrick) Date: Fri, 23 Feb 2007 05:05:32 -0500 (EST) Subject: [cl-pdf-devel] Problems upgrading... again Message-ID: <4882.68.44.154.215.1172225132.squirrel@reedlarkeygroup.com> Hey everyone... I'm pretty desperate here. I'm willing to write a check, if that's what it takes. I'm trying to deliver a commercial product, and when I go to set up cl-pdf on a new machine, I have to fight with it to get it to work. My company is about to kill lisp because of this. I keep getting 'the variable pdf:*root-page* is unbound'. Normally, I'd just go with an old version of cl-pdf, but something happens with the compression, and I get artifact characters in front of the copyright symbols. This is unacceptable to our clients. I'm running SBCL 1.0.2 on Linux. I've tried +pdf-binary, and -pdf-binary. I've tried svn release 130 and 135. I've deleted all my fasls and recompiled. I've turned compression on. I've turned it off. Nothing seems to help. I'm at my wits end. If anyone can help, I'll pay for your time. I've just got to get this problem solved, and soon. -- Jonathon McKitrick Reed Larkey Group From attila.lendvai at gmail.com Fri Feb 23 10:59:06 2007 From: attila.lendvai at gmail.com (Attila Lendvai) Date: Fri, 23 Feb 2007 11:59:06 +0100 Subject: [cl-pdf-devel] BUG: string encoding and compression Message-ID: > I keep getting 'the variable pdf:*root-page* is unbound'. Normally, I'd > just go with an old version of cl-pdf, but something happens with the > compression, and I get artifact characters in front of the copyright > symbols. This is unacceptable to our clients. so that noone runs into this until it's fixed: if you produce a stream longer than *min-size-for-compression* and *compress-streams* is t, then the content of the stream is converted to '(unsigned-byte 8) by deflate::string-to-octets (when salza is used, but other compression methods convert to byte-array with other various fixed encodings). the problem is that deflate::string-to-octets uses the vm's default external format, which may be anything (it's utf-8 in my sbcl environment) which results in utf-8 garbage in the pdf. so, if you want to produce non-ascii pdf's then currently i suggest to turn off compression or specify the needed encoding in deflate::string-to-octets. unfortunately i'm missing vital PDF knowledge on how actually encoding is implemented, so i can't give a fix and/or a more educated advice. hth, -- - attila "- The truth is that I've been too considerate, and so became unintentionally cruel... - I understand. - No, you don't understand! We don't speak the same language!" (Ingmar Bergman - Smultronst?llet) From gwking at metabang.com Fri Feb 23 15:02:40 2007 From: gwking at metabang.com (Gary King) Date: Fri, 23 Feb 2007 10:02:40 -0500 Subject: [cl-pdf-devel] Problems upgrading... again In-Reply-To: <4882.68.44.154.215.1172225132.squirrel@reedlarkeygroup.com> References: <4882.68.44.154.215.1172225132.squirrel@reedlarkeygroup.com> Message-ID: Hi Jonathon, If you could post a small program that reproduces the problem then someone might be able to help (probably not me due to both lack of knowledge and lack of time...) regards, On Feb 23, 2007, at 5:05 AM, Jonathon McKitrick wrote: > > Hey everyone... I'm pretty desperate here. I'm willing to write a > check, > if that's what it takes. > > I'm trying to deliver a commercial product, and when I go to set up > cl-pdf > on a new machine, I have to fight with it to get it to work. My > company > is about to kill lisp because of this. > > I keep getting 'the variable pdf:*root-page* is unbound'. > Normally, I'd > just go with an old version of cl-pdf, but something happens with the > compression, and I get artifact characters in front of the copyright > symbols. This is unacceptable to our clients. > > I'm running SBCL 1.0.2 on Linux. I've tried +pdf-binary, and -pdf- > binary. > I've tried svn release 130 and 135. I've deleted all my fasls and > recompiled. I've turned compression on. I've turned it off. Nothing > seems to help. I'm at my wits end. If anyone can help, I'll pay > for your > time. I've just got to get this problem solved, and soon. > > -- > Jonathon McKitrick > Reed Larkey Group > > > _______________________________________________ > cl-pdf-devel site list > cl-pdf-devel at common-lisp.net > http://common-lisp.net/mailman/listinfo/cl-pdf-devel -- Gary Warren King, metabang.com Cell: (413) 885 9127 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM From jmckitrick at reedlarkeygroup.com Fri Feb 23 17:02:23 2007 From: jmckitrick at reedlarkeygroup.com (Jonathon McKitrick) Date: Fri, 23 Feb 2007 12:02:23 -0500 (EST) Subject: [cl-pdf-devel] Problems upgrading... again In-Reply-To: References: <4882.68.44.154.215.1172225132.squirrel@reedlarkeygroup.com> Message-ID: <49249.68.44.154.215.1172250143.squirrel@reedlarkeygroup.com> On Fri, February 23, 2007 5:24 am, Levente M?sz?ros said: > We had some problems with cl-pdf compression because it applies the > platform's default encoding to the output before stream before > actually compresssing. > > This causes weird characters to appear in the pdf. We are using utf-8 > as the lisp vm's default encoding and this causes all those troubles. That is *exactly* the problem. Everywhere there should be a copyright symbol, there is a capital-A-with-acute-accent: A` > You will need to turn off compression to solve this problem. We also > use a custom font which has correct encoding and will be embedded in > the pdf file. I have compression disabled, and the problem still occurs on *some* but not all machines. > If you can send a short non working example we can take a look at it. Unfortunately, it only occurs in *long* documents, where the compression is more evident. I'll see if I can make an example. Thanks... -- Jonathon McKitrick Reed Larkey Group From jmckitrick at reedlarkeygroup.com Sat Feb 24 20:35:44 2007 From: jmckitrick at reedlarkeygroup.com (Jonathon McKitrick) Date: Sat, 24 Feb 2007 15:35:44 -0500 (EST) Subject: [cl-pdf-devel] Problems upgrading... again In-Reply-To: References: <4882.68.44.154.215.1172225132.squirrel@reedlarkeygroup.com> Message-ID: <49974.68.44.154.215.1172349344.squirrel@reedlarkeygroup.com> On Fri, February 23, 2007 5:24 am, Levente M?sz?ros said: > If you can send a short non working example we can take a look at it. Thanks for your help. Here you go: (defun report-write-to-file (filename) (tt:with-document () (let* ((header (lambda (pdf:*page*) (compile-text () "Header"))) (footer (lambda (pdf:*page*) (compile-text (:font "Times-Roman" :font-size 12) (paragraph (:h-align :center) "? 2007 JCM") (paragraph (:h-align :center) (verbatim (format nil "~D" pdf:*page-number*)))))) (content (compile-text () (dotimes (i 10) (paragraph (:font "Times-Roman" :font-size *font-size*) "Hello"))))) (draw-pages content :margins '(108 72 72 72) :header header :footer footer) (when pdf:*page* (finalize-page pdf:*page*)) (pdf:write-document (concatenate 'string "web/data/" filename))))) -- Jonathon McKitrick Reed Larkey Group