After a long pause in working with Kicad, I’m once again (still) encountering a problem in creating a PDF with silk screen or fab output (on top of the appropriate layer, that is visible, too - using Kicad 5). The output is always with reference and value, regardless whether e.g. value is visible in the layout view or not.
Another issue is PDF via printer driver: Text is not searchable.
As a workaround I created a shell script that solves these issues. Morover, the text automatically appears black, and is searchable. The shell script is self explaining. Basically, the method is to plot PDF output of both FAB-layers and to export the top resp. bottom layer to SVG format. Then the shell script converts the SVG to PDF and then combines the text PDF with the layer PDF to form a document that looks nice, and is text searchable.
makeCu Fab_pdf.sh (1.4 KB)
Of course, a few packages must be installed (on Linux) in order to let the script do the job. Perhaps, anyone can extend this solution, e.g. fully automated from the Kicad scripting level, including the creation of the individual output files that is needed to create this composition.
An impression of the output (partially, screenshot from PDF):