Hello,
I generate a PDF by using a CLI command calling a python script and my custom font is not rendered in the producted pdf. (See attachements)
If I export manually in pdf by using the Scribus menu it works.
So I must have a problem with my CLI command or the python export code.
Following is th CLI command called by a Python program. Just for info, this python program fill the sla from a calc file replacing placeholder by the content of calc cell keeping formating (color, bold, italic) at word level.
import subprocess
subprocess.check_output(['C:\Program Files\Scribus 1.5.8\Scribus.exe','-g','-ns',"-py","to-pdf.py",'--',str(fileOut)], shell=True)
The python code "to-pdf.py" is here (don't remember where it come from, maybe the wiki) :
# Produces a PDF for the SLA passed as a parameter.
# Uses the same file name and replaces the .sla extension with .pdf
#
# usage:
# scribus -g -py to-pdf.py -- file.sla
#
# license:
# (c) MIT Ale Rimoldi
import os
import scribus
if scribus.haveDoc() :
filename = os.path.splitext(scribus.getDocName())[0]
pdf = scribus.PDFfile()
pdf.file = filename+".pdf"
pdf.save()
else :
print("No file open")
Thank you for your help