I've collected a bunch of domino games and published them as a PDF that I generate with reportlab. Now, I'm looking at how much it would cost to publish a paper book, but Lulu complains about my PDF:
Fonts: We found some fonts in your file that need to be embedded. Please review your PDF and make sure all Fonts are embedded.
I used the fonts that built into Acrobat Reader, such as Helvetica, so I assumed they would work anywhere.
Here's a simple example that makes Lulu complain:
from subprocess import run
from reportlab.lib import pagesizes
from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle
from reportlab.lib.units import inch
from reportlab.platypus import SimpleDocTemplate, Paragraph
def main():
pdf_path = 'booklet.pdf'
doc = SimpleDocTemplate(pdf_path,
pagesize=pagesizes.letter,
topMargin=0.625*inch,
bottomMargin=0.625*inch)
styles = getSampleStyleSheet()
normal_style: ParagraphStyle = styles['Normal']
custom_style = ParagraphStyle('custom',
parent=normal_style,
fontSize=300,
leading=360)
story = []
for i, text in enumerate('ABCDEFGH'):
flowable = Paragraph(text, custom_style)
story.append(flowable)
doc.build(story)
# run(["evince", pdf_path], check=True) # launch PDF viewer
main()
How can I embed fonts so that Lulu will accept my PDF?