We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I just installed and tried pypandoc, but I can't figure out how to set metadata in the EPUB output file
os.environ.setdefault('PYPANDOC_PANDOC', r'c:\Apps\Pandoc\pandoc.exe') #print(pypandoc.get_pandoc_version()) #OK output = pypandoc.convert_file(TEMPFILE, 'epub', outputfile=OUTPUTFILE) #RuntimeError: Pandoc died with exitcode "6" during conversion: Unknown option --metadata title. #output = pypandoc.convert_file(TEMPFILE,format='html',to='epub',encoding='utf-8',outputfile=OUTPUTFILE, extra_args=['--metadata title=f"{TITLE}"']) #RuntimeError: Pandoc died with exitcode "6" during conversion: Unknown option --metadata title. output = pypandoc.convert_file(TEMPFILE,format='html',to='epub',outputfile=OUTPUTFILE, extra_args=['--metadata title="blah"'])
Thank you.
The text was updated successfully, but these errors were encountered:
Done
extra_args=['--epub-title-page=false','--metadata',f'author={AUTHOR}','--metadata',f'title={TITLE}'] #print("extra_args:",extra_args) output = pypandoc.convert_file(TEMPFILE,format='html',to='epub',outputfile=OUTPUTFILE, extra_args=extra_args)
Sorry, something went wrong.
No branches or pull requests
Hello,
I just installed and tried pypandoc, but I can't figure out how to set metadata in the EPUB output file
Thank you.
The text was updated successfully, but these errors were encountered: