The 'Generate PDF' option does not appear on all dashboards

Expected Behavior

Each dashboard should have a ‘Generate PDF’ option available.

Actual Behavior

Of the two dashboards, one has the “Generate PDF” option available while the other one does not.


Frontend implementation using the Amazon QuickSight SDK.

const QuickSightEmbed: React.FC<QuickSightEmbedProps> = ({ embedURL }) => {
    const containerRef = useRef<HTMLDivElement>(null);

    useEffect(() => {
        const embedDashboard = async () => {

            const embeddingContext = await createEmbeddingContext();

            const frameOptions = {
                url: embedURL,
                container: containerRef.current,
                resizeHeightOnSizeChangedEvent: true,
            };

            const contentOptions = {
                locale: "en-US",
                toolbarOptions: {
                    export: true,
                    undoRedo: true,
                    reset: true,
                }
            };

            await embeddingContext.embedDashboard(frameOptions, contentOptions);
        };

        embedDashboard();
    }, [embedURL]);

    return <div className="quicksight-embed" ref={containerRef} />;
};

Hi @emi,

Can you check if the “Enable PDF download” option was selected when the dashboard was published?
image

1 Like

Thank you for the reply. Yes, this option is enabled for both dashboards. Here it is enabled for the dashboard in question which does not have the “Generate PDF” option available.

Hi @emi,

Can you clarify if this issue exists both in the embedded dashboard and when you view the dashboard in the QuickSight console? If the “Generate PDF” option is also missing in the QuickSight console, then we know it’s not an embedded issue.

Hi David, thanks for the question. In the QuickSight console, there is a “Generate PDF” option. It is only missing when I embed the url in a react.js app using the Amazon QuickSight SDK.

@emi ,

1/ Are you using anonymous embedding ?
2/ Is tag based row-level-security enabled ?

If 1/ and 2/ are true, then generate PDF is not supported Generate PDF for dashboard with TagBased RowLevelSecurity - #3 by Koushik_Muthanna

Kind regards,
Koushik

1 Like

In our case, both point 1 and 2 are true. We are using anonymous embedding and Tag-Based Role Level Security is enabled. Could you please explain a bit more about why this feature is not supported under these conditions? Is there a plan to support this feature under these conditions in the near future, or not at all? Thanks again for your answers.
Best regards,
Emi

@emi,

As I understand, this is a feature which has to be implemented. I’ll go ahead and mark this as a feature request to provide added visibility to our support team.

Kind regards,
Koushik

2 Likes