How to enter the symbol "checkbox" in pdf format created by report4pdf?

So, I'm working on creating PDF files using the report4PDF package (bob nemec) from Cincom's VisualWorks 8.1 software. I do everything in the "small".

However, now the problem that I am facing is that I cannot check the box for the character displayed in PDF.

So my code will look like this:

pdfDocument := Report4PDF.R4PReport new.
exporter := SAGETEAPDFDataExporter onDocument: pdfDocument.
exporter currentText text string:' Available'.
"Followed by relevant code to save PDF"

But what appears in my PDF format is basically "available." A space appears instead of a checkmark. I even tried using dingbat codes (ex: # 9744). Works with symbols of copyright, alpha, gamma. Not with a flag symbol.

I tried updating my VisualWorks image from a public repository using report4pdf, pdf, and font development kits. I ran into some questions that I will not mention, since this will take us away from the topic.

Thank Advance

+4
source share
1 answer

Ok ... So, I decided to find a solution to this issue. I just post an answer here just in case anyone else gets into a similar situation.

    pdfDocument := Report4PDF.R4PReport new.
    exporter := SAGETEAPDFDataExporter onDocument: pdfDocument.
    exporter currentText text:[:text|
         text string zapfDingbats ;string:'q'. 
         text string helvetica; string:'Available' ]. 

, dingbats, . , - : '(Checkbox) Available'. , : 'q Available'. "q" dingbats, "" - Helvetica.

, . @Leandro :)

!

+1

Source: https://habr.com/ru/post/1673427/


All Articles