Here is a program which illustrates an unexpected behaviour:

  import Graphics.PDF

  main = runPdf "bug.pdf" standardDocInfo (PDFRect 0 0 100 100) pdf
      where
      pdf = do
          p <- addPage Nothing
          drawWithPage p $ drawText $
              sequence $ replicate 10 $
                text (PDFFont Helvetica 10) 10 10 (toPDFString "ABC")

What I expect here is "ABC" printed 10 times on the same place (starting
at (10,10)). What I see (in Okular) is ABC printed each time in the new
place like this:

   ABC
  ABC
 ABC
ABC

What's happening here? I'm using HPDF-1.4.1 from Hackage.

-- 
Roman I. Cheplyaka :: http://ro-che.info/
"Don't let school get in the way of your education." - Mark Twain
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to