Recent

Author Topic: fpPDF questions  (Read 928 times)

VTwin

  • Hero Member
  • *****
  • Posts: 797
  • Former Turbo Pascal 3 user
fpPDF questions
« on: December 20, 2018, 11:24:36 pm »
I just started trying out fpPDF, and it is very impressive. I am trying to export vector graphics files, so far svg and eps formats are in pretty good shape, and I'd like to add pdf. Especially so because Illustrator has bugs in svg import. I've been looking through the fpPDF source code and examples, but have a few questions:

How does one set font justification, or alternatively, determine the height and width of a string? I found GetTextWidth and GetTextHeight, but they seem to be private.

Second, is it possible to use transparency with colors? I don't think it is with eps, but it seems like it should be in pdf.

Third, is there a way to set layers or groups? I have been able to do this in svg, and it is very useful when editing in Illustrator or Inkscape.

Perhaps these are possible, but not implemented? Thanks for the work on this!

Cheers,
VTwin
“Talk is cheap. Show me the code.” -Linus Torvalds

macOS 10.13.6: Lazarus 2.0.7 fixes svn 62300 (64 bit Cocoa)
Ubuntu 18.04.3: Lazarus 2.0.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.0.6 (64 bit on VBox)
fpc 3.0.4

VTwin

  • Hero Member
  • *****
  • Posts: 797
  • Former Turbo Pascal 3 user
Re: fpPDF questions
« Reply #1 on: December 30, 2018, 04:24:28 pm »
In case anyone else is looking, some discussion and some answers to my questions are here:

http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-fpPDF-set-clip-rect-for-text-td4048354.html
“Talk is cheap. Show me the code.” -Linus Torvalds

macOS 10.13.6: Lazarus 2.0.7 fixes svn 62300 (64 bit Cocoa)
Ubuntu 18.04.3: Lazarus 2.0.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.0.6 (64 bit on VBox)
fpc 3.0.4