Recent

Author Topic: fpPDF questions  (Read 2534 times)

VTwin

  • Hero Member
  • *****
  • Posts: 1227
  • 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

Free Pascal Compiler 3.2.2
macOS 15.3.2: Lazarus 3.8 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 3.8 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 3.8 (64 bit on VBox)

VTwin

  • Hero Member
  • *****
  • Posts: 1227
  • 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

Free Pascal Compiler 3.2.2
macOS 15.3.2: Lazarus 3.8 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 3.8 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 3.8 (64 bit on VBox)

 

TinyPortal © 2005-2018