Tamas K Papp | 18 Apr 10:17
Picon

gradients

Hi,

I would like to write a plotting function that draws image plots
(plotting a matrix in 2d using colors).  It would be useful to use
gradients; in particular, paint a rectangle where the four corners each
have a color and the each point in the rectangle has a color which is a
convex combination of the corner colors.  I think this is called a
gradient in most libraries, but I could not figure out how to do it in
cl-pdf (I have to admit that I didn't find gradients in the library,
maybe I didn't look hard enough).  Suggestions/examples would be
welcome.

Best,

Tamas

_______________________________________________
cl-pdf-devel site list
cl-pdf-devel@...
http://common-lisp.net/mailman/listinfo/cl-pdf-devel

Tamas Papp | 12 Feb 12:04
Picon

embedding PDF

Hi,

Is it possible to embed another PDF file (ie render it contents at a
particular coordinate) in a document generated by CL-PDF?

Thanks,

Tamas

_______________________________________________
cl-pdf-devel site list
cl-pdf-devel@...
http://common-lisp.net/mailman/listinfo/cl-pdf-devel

jcm | 18 Jan 19:28
Favicon

Need help with layout

I'm having some issues getting my layout working, and I'm running out of
time, so if anyone can help, I'd appreciate it.

How can I have a line of text, a user drawn box, and another line of text,
with the text lined up pretty much with the center of the box?  I have a
100 point high user draw box, so I need label text on the left and right
about 50 points from the top or bottom of the box.

Can anyone help?

_______________________________________________
cl-pdf-devel site list
cl-pdf-devel@...
http://common-lisp.net/mailman/listinfo/cl-pdf-devel

jcm | 18 Jan 19:12
Favicon

Text to left and right of user drawn box

I'm drawing a chart that needs text to the left and the right.  However,
I'm not sure which text methods are correct within the context of
WITH-DOCUMENT to place text where I need them to go.  Using the regular
CL-PDF methods causes an error, because *page* is not set.

_______________________________________________
cl-pdf-devel site list
cl-pdf-devel@...
http://common-lisp.net/mailman/listinfo/cl-pdf-devel

jcm | 17 Jan 13:46
Favicon

Adding arrow heads to lines

Is there a way to add arrow heads without trying to rotate and draw them
manuall?

_______________________________________________
cl-pdf-devel site list
cl-pdf-devel@...
http://common-lisp.net/mailman/listinfo/cl-pdf-devel

jcm | 17 Jan 13:48
Favicon

Importing Cambria font

I'm running SBCL on OS X.  How could I import a Cambria font for use in PDFs?

_______________________________________________
cl-pdf-devel site list
cl-pdf-devel@...
http://common-lisp.net/mailman/listinfo/cl-pdf-devel

jcm | 15 Jan 15:08
Favicon

Multicolor text in paragraph

Can PARAGRAPH be used to show different styles/colors of text in the same
line?

_______________________________________________
cl-pdf-devel site list
cl-pdf-devel@...
http://common-lisp.net/mailman/listinfo/cl-pdf-devel

jcm | 12 Jan 02:31
Favicon

More questions

1.  What does with-saved-state do?  I've tried changing color inside this
expression, and expecting it to go back to what it was before after the
expression ends.  Is this how it works?

2.  I tried changing the fill and stroke colors for text on one line, and
then a different color on the next line.  But all text on the page ends up
the last color I use.  How can I have different color text?

3.  What are the uses for in-text-mode and move-text ?  I tried move-text
while inside in-text-mode, and it seems to have no effect on the text
location.  move-to does not either.  But vspace does.

_______________________________________________
cl-pdf-devel site list
cl-pdf-devel@...
http://common-lisp.net/mailman/listinfo/cl-pdf-devel

jcm | 12 Jan 00:37
Favicon

Understanding text layout functions

I'm trying to draw a title page, with some colored bars and images, and
text as well.

What is the purpose of in-text-mode and draw-text versus the paragraph
function?

Why do some strings appear correctly in the pdf when they are in a
paragraph, but others need to be inserted with format-string?

I have more questions, but I'll start with these.

_______________________________________________
cl-pdf-devel site list
cl-pdf-devel@...
http://common-lisp.net/mailman/listinfo/cl-pdf-devel

jcm | 29 Dec 02:22
Favicon

Bullet points

Hi all,

I'm back on a major project using cl-pdf.  I need to generate bullet
points in a table display.  I've been experimenting with UTF-8 encoding in
other areas, but not cl-pdf.  What's the trick to displaying them?

_______________________________________________
cl-pdf-devel site list
cl-pdf-devel@...
http://common-lisp.net/mailman/listinfo/cl-pdf-devel

Mitch Berkson | 15 Nov 19:11

Conversion of TrueType fonts to afm for use by CL-PDF

I have tried two ways to convert my Garamond TrueType font to .afm.  The 
first was using the font converter at http://fpdf.fruit-lab.de/. The 
second was using Dimitriy's converter ttf2pt1.

When viewing a pdf document created using the Garamond.afm font produced 
by either of these, Adobe reader says "The font 'Garamond' contains a 
bad /BBox." and the text looks bad.

Is there a better way to get .afm files for CL-PDF?  Thanks for any help.

Mitch Berkson

I doubt if this is an issue, but to generate the pdf, I am using:

(defun font-test (&optional (file (merge-pathnames  "font-test.pdf" *dir*)))
   (pdf:with-document ()
     (pdf:with-page ()
       (let ((font-names '("Helvetica" "Times-Roman" "Garamond"))
             (text-str "Lorem ipsum dolor sit amet, consectetur 
adipiscing elit. Nam elit metus,
consequat ac posuere eu, rutrum sit amet nisi. Suspendisse potenti. In 
consequat, massa sit amet
eleifend pharetra, ligula nisl posuere elit, aliquam sagittis nibh magna 
eget justo. Maecenas
justo risus, varius at iaculis in, pellentesque at lectus. Praesent ut 
tincidunt lectus.")
             (content))
         (loop for a-font-name in font-names
               for i from 0
               do (setf content
(Continue reading)


Gmane