I'm working with migration Dokuwiki to Confluence 6.12. I'm using for this purpose script -
https://github.com/dmitrii-ageev/dokuwiki-to-confluence
It partly working with our dokuwiki , but now, we have problem with import pdf, doc, xls files. After calling, for example, convertWikiToStorageFormat(token, content) with input "!test1.pdf", output is -
------------
<ac:structured-macro ac:macro-id="9b1fe241-5df9-43f9-8b95-88636683ef22" ac:name="unmigrated-wiki-markup" ac:schema-version="1">
<ac:plain-text-body><![CDATA[!test1.pdf!]]></ac:plain-text-body>
</ac:structured-macro>
----------
and Confluence6.12 not correct rendern this content, it need code , like this-
--------------------
<ac:structured-macro ac:macro-id="c2c10b51-3fe8-4268-a15d-245182d62eae" ac:name="view-file" ac:schema-version="1">
<ac:parameter ac:name="name">
<ri:attachment ri:filename="test1.pdf"/>
</ac:parameter>
<ac:parameter ac:name="height">250</ac:parameter>
</ac:structured-macro>
-------------------
What I doing wrong? Which is best practice for this migration?
thank you in advance