You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
I want to create macro that resize pdf in full size according to div size (don't want scrollbar) .
To achieve this ,
i have added two parameter of type -
1)confluence-content(label-page)
2)attachment (label-name)
Macro code:--
"""
window.alert(${parameters.name})
<div style="width: 50%; height: 600px">
<iframe src="${entity.getAttachmentNamed("${parameters.name}").getAttachmentsUrlPath()}"
style="height: 100%; width: 100%; object-fit: contain">
</div>
"""
Macro Javascript code:--
AJS.toInit(function() {
AJS.MacroBrowser.activateSmartFieldsAttachmentsOnPage("testmacro", ["pdf"]);
})
but it doesnt show preview like below image -(i think need to give correct "src")
Hi @Sneha Gole ,
You can check out these resources
https://confluence.atlassian.com/doc/pdf-macro-375849180.html
https://confluence.atlassian.com/doc/customize-exports-to-pdf-190480945.html
https://marketplace.atlassian.com/apps/1213333/pdf-macros-for-confluence?hosting=server&tab=overview
Regards,
Soumyadeep
hii @Soumyadeep Mandal - SaM ,
i cant use "pdf macro" as it showing horizontal scrollbar , we dont want scroll bar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i have tried this before " overflow-x: hidden " will hide scroll bar but it doesn't show pdf in full size .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Sneha Gole ,
change the width to 100%
<div style="width: 100%; height: 600px">
else
You can contact HERE
Regards,
Soumyadeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond. A long time favorite, Team Cale...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.