How do I create a page using Python API create_page() with embedded PDF? I'm formatting the body of the page as XHTML, however, I could not find out how to embed PDF file.
https://confluence.atlassian.com/doc/confluence-storage-format-790796544.html
does not go into detail about embedding pdf.
Here's the content of body:
<ac:link>
<ri:attachment ri:filename="report.pdf" />
<ac:plain-text-link-body>
<![CDATA[Link to a report.pdf Attachment]]>
</ac:plain-text-link-body>
</ac:link>
<hr />
<ac:structured-macro ac:name="viewpdf" ac:schema-version="1" >
<ac:parameter ac:name="filename">report.pdf</ac:parameter>
</ac:structured-macro>
The first link works and I can open the attachment. However, the viewpdf does not find the report.pdf file.