[scribus-dev] script export to PDF with outlined fonts

William Bader william.bader at newspapersystems.com
Thu Oct 5 17:29:14 UTC 2017


On Thu, Oct 5, 2017 at 1:52 PM, JLuc <jluc at no-log.org> wrote:

> Hello
>
> When i set options to "outline all" when exporting to PDF
> and later save the SLA,
>
> and later export it to PDF through the commande line option
>
> using
>     filename = os.path.splitext(scribus.getDocName())[0]
>     pdf = scribus.PDFfile()
>     pdf.file = filename+".pdf"
>     pdf.version = 15
>     pdf.save()
>
> then the created PDF has all fonts embeded or subset,
> when it should have none, but vectors instead.
>
> Is there some special argument i have to pass to these python commands ?
>
> JLuc
>

To see the list of options, on the Scribus menu bar, use Help -> Scribus
Manual, and then in the manual, open the Contents tab and navigate to For
Developers -> Scripter API -> PDF Export.
PDFFile has a fontEmbedding property that you can set to 1 to request
conversion to vectors.
Can you try adding a line pdf.fontEmbedding = 1
Regards, William Bader, Director of Research and Development at SCS,
http://www.newspapersystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus-dev/attachments/20171005/b6e3c674/attachment.html>


More information about the scribus-dev mailing list