LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with formatting variable width fonts

This is complicated, but I think what I have done so far makes sense.

I want to produce a PDF file containing a mixture of graphics and text, where the graphics are jpg's or bmp's and the text is drawn dynamically from a database.  These are both relatively straightforward.

My problem is that I want to generate a block of text and insert it into a graphic (again straightforward if you use the insert text at point vi).  However, the problem is that I want two columns, one left justified, and one right justified, so that the page looks neat. 
I tried
    1. writing a vi which takes the lengths of the strings, and pads them with spaces, but of course, unless you use a type-writer font  this doesn't work;
     2. Using a table, which allows you to justify different columns differently, but the insert text vi doesn't accept a table.

Any ideas?
0 Kudos
Message 1 of 3
(2,496 Views)
Hi Mark,

I hope you are doing well today! Have you had any luck with this? If not, then can you post an image of your VI's block diagram so I can see what's going on.

Message Edited by Adnan Z on 02-06-2007 03:18 PM

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 3
(2,474 Views)

Hi,

Thanks for the offer.  What I have come up with sort of works.  I worked out that I can add two images together by operating on the 2D pixmaps.  So by casting the text I want next to the graphic as a picture - I can then convert that to a pixmap, and simply join the two arrays, convert them back to a picture, and 'hey presto' there is an image of everthing I want.  When converted to a pdf this looks a little fuzzy, but unless anybody has any better suggestions, then I'll live with it.

 

Mark.

0 Kudos
Message 3 of 3
(2,467 Views)