Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Framework » PDF - drawing with lines
PDF - drawing with lines [message #7906] Fri, 14 February 2025 10:37 Go to next message
htManager is currently offline  htManager
Messages: 452
Registered: May 2014
Senior Member
Hi Tony,

is it possible to generate PDF output with lines where the start and end of the line are determined by x/y coordinates?

I know that in the *.report.inc file the array('text' => '', 'style' => 'rule_title', 'width' => '25%'); draws a horizontal line.

But I haven't read anywhere whether such a line can be issued.
I have attached a picture.

if this is not possible, do you have any idea how I could make this happen?
Re: PDF - drawing with lines [message #7907 is a reply to message #7906] Sun, 16 February 2025 05:05 Go to previous messageGo to next message
AJM is currently offline  AJM
Messages: 2377
Registered: April 2006
Location: Surrey, UK
Senior Member
This is not possible within RADICORE as the PDF module was specifically designed to deal with the reporting of data and not the drawing of pictures. For that I'm afraid you will have to write your own code.

Re: PDF - drawing with lines [message #7908 is a reply to message #7907] Sun, 16 February 2025 05:43 Go to previous messageGo to next message
htManager is currently offline  htManager
Messages: 452
Registered: May 2014
Senior Member
I suspected that. Thank you very much for the confirmation.
Re: PDF - drawing with lines [message #7909 is a reply to message #7908] Wed, 19 February 2025 11:33 Go to previous messageGo to next message
htManager is currently offline  htManager
Messages: 452
Registered: May 2014
Senior Member
Instead of drawing lines I would have another solution:
To do this I would have to put a field over an image. However, the field is displayed either above or below the image. Depending on how I fill out the structure file.
$structure['multi10']['fields'][1][] ...
$structure['multi10']['fields'][2][] ...

Is it possible to layer one on top of the other?
I have attached a drawing.
  • Attachment: wurfbild.jpg
    (Size: 16.91KB, Downloaded 33 times)
Re: PDF - drawing with lines [message #7910 is a reply to message #7909] Thu, 20 February 2025 04:25 Go to previous messageGo to next message
AJM is currently offline  AJM
Messages: 2377
Registered: April 2006
Location: Surrey, UK
Senior Member
No, it is not possible to take two images and layer one over the other. Maybe you could try merging the two images into a single image in a separate process, and then displaying that single image.

Re: PDF - drawing with lines [message #7911 is a reply to message #7910] Thu, 20 February 2025 06:11 Go to previous messageGo to next message
htManager is currently offline  htManager
Messages: 452
Registered: May 2014
Senior Member
Can you give me some advice on how best to do this?
Is the GD library a suitable way to do this?
Actually there are not two images, but a background image and a (or more) data field(s).
Re: PDF - drawing with lines [message #7912 is a reply to message #7911] Thu, 20 February 2025 10:15 Go to previous message
htManager is currently offline  htManager
Messages: 452
Registered: May 2014
Senior Member
I found another solution to my problem. I have defined fields where I output a page as a boundary. That's enough for now.
I do the same with the 2nd picture.
I attached a screenshot.
Previous Topic: Tab order in Radicore screen
Next Topic: Introduction to the Radicore framework
Goto Forum:
  


Current Time: Fri Feb 21 16:14:13 EST 2025

Total time taken to generate the page: 0.01270 seconds