Macro content doesn't export to Word/PDF in confluence

478 views
Skip to first unread message

Юрий Клещенок

unread,
Apr 15, 2015, 11:48:36 AM4/15/15
to atlassian-...@googlegroups.com
Hello, guys! I'm build some dynamic content macro for confluence. Macro content doesn't appear in PDF/WORD file when I'm trying to export it using a standard confluence function. But the rest of the page is converted correctly. Any suggestions?

Seb Ruiz

unread,
Apr 15, 2015, 5:00:21 PM4/15/15
to atlassian-...@googlegroups.com
You should use the dynamic macro renderMode to instruct confluence to use a static representation of your add-on during export.

On 16 April 2015 at 01:48, Юрий Клещенок <kleshch...@gmail.com> wrote:
Hello, guys! I'm build some dynamic content macro for confluence. Macro content doesn't appear in PDF/WORD file when I'm trying to export it using a standard confluence function. But the rest of the page is converted correctly. Any suggestions?

--
You received this message because you are subscribed to the Google Groups "Atlassian Connect Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to atlassian-connec...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Seb Ruiz
Atlassian

Юрий Клещенок

unread,
Apr 16, 2015, 9:11:44 AM4/16/15
to atlassian-...@googlegroups.com
Thanks!
Message has been deleted

Yuri Kleshchenok

unread,
Oct 2, 2015, 3:25:23 AM10/2/15
to Atlassian Connect Dev
So, there is some error anyway:
atlassian-connect.json:
"renderModes": {
                    "pdf": {
                        "url": "/render-macro-pdf"
                    },
                    "default": {
                        "url": "/render-macro-static"
                    }
                }
index.js
app.get('/render-macro-static', addon.authenticate(), function(req, res) {
        res.render('into-word');
    });
into-word.hbs
lalalalal
resutlt (click Export to Word option) test+page+1.doc

test page 1

Loading add-on My addon name.

Add-on My addon name is not responding. Wait or cancel?

Add-on My addon name failed to load.

lalalalal 

Ivan Ryabov

unread,
Oct 6, 2015, 2:31:36 AM10/6/15
to Atlassian Connect Dev
Could you please check what error are displayed in the developer's console of your browser and also could you please check addon server to make sure that request from the page has reached it.
Thank you.  

Yuri Kleshchenok

unread,
Oct 7, 2015, 3:25:19 AM10/7/15
to Atlassian Connect Dev
server:
GET /render-macro-static?spaceId=65537&spaceKey=ds&pageId=720898&pageTitle=test+page
+1&pageVersion=14&macroId=ed7ef718-08af-4fce-818f-c32ec161c686&tz=Europe%2FMinsk&loc=en-GB
&user_id=admin&user_key=2c9682714db22c7c014db22f51970002&xdm_e=http%3A%2F%2Fmyname-pc%3
A1990
&xdm_c=channel-my-addon&cp=%2Fconfluence&lic=none&cv=1.1.54 200 11ms - 9b
console:
Resource interpreted as Document but transferred with MIME type application/octet-stream: "http://myname-pc:1990/confluence/exportword?pageId=720898".

Yuri Kleshchenok

unread,
Oct 7, 2015, 3:31:04 AM10/7/15
to Atlassian Connect Dev
and my run command:
atlas-run-standalone --product confluence --version 5.9.1-OD-2015.40.1-0001 --data-version 5.9.1-OD-2015.40.1-0001 --bundled-plugins com.atlassian.bundles:json-schema-validator-atlassian-bundle:1.0.4,com.atlassian.webhooks:atlassian-webhooks-plugin:1.0.6,com.atlassian.jwt:jwt-plugin:1.2.2,com.atlassian.upm:atlassian-universal-plugin-manager-plugin:2.20.1-D20150924T170115,com.atlassian.plugins:atlassian-connect-plugin:1.1.54 --jvmargs -Datlassian.upm.on.demand=true


Yuri Kleshchenok

unread,
Oct 7, 2015, 4:16:13 AM10/7/15
to Atlassian Connect Dev
Oh, sorry for bad call :|
i'm just missed another macro on a page, so this error in word dont exist.
But, there is some real problem with render image: trying convert to PDF/WORD jiraIssue (inside and outside my macro);
and image from the web dont render too, but attached image - render well.

ds-testpage1-071015-1110-34.pdf
test+page+1 (3).doc
Reply all
Reply to author
Forward
Message has been deleted
0 new messages