Alfresco Markdown Rendition
by Angel Borroy
Community
Creates and stores a Markdown rendition for every document in Alfresco Repository
About
- Generates
cm:markdown
(text/markdown
) from the PDF version of a document using either the newly createdcm:pdf
rendition or the original when it’s already PDF. So Markdown is produced for any source mimetype - Works in two cases:
- When Alfresco generates a
cm:pdf
rendition from another format (DOCX, ODT, etc.) - When the original upload is already a PDF
- When Alfresco generates a
- The Markdown file is stored as a proper rendition:
- Association:
rn:rendition
- Association name (rendition id):
cm:markdown
- Child node has aspect:
rn:rendition
- Mimetype:
text/markdown
- Association:
- Runs asynchronously after commit (does not block user transactions)