Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add svg files as header option in pdf export #4443

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

anbebe
Copy link
Contributor

@anbebe anbebe commented Dec 3, 2024

Closes #3586

@@ -313,7 +313,7 @@ export class MotionViewComponent extends BaseMeetingComponent implements OnInit,
/**
* Click handler for the pdf button
*/
public downloadPdf(): void {
public async downloadPdf(): Promise<void> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unnecessary

Suggested change
public async downloadPdf(): Promise<void> {
public downloadPdf(): void {

Comment on lines +329 to +338
this.updateHeader([`pdf_header_l`, `pdf_header_r`]).then(() => {
this.mediaManageService
.getLogoUrlObservable(`pdf_header_l`)
.pipe(distinctUntilChanged())
.subscribe(_ => this.updateHeader([`pdf_header_l`]));
this.mediaManageService
.getLogoUrlObservable(`pdf_header_r`)
.pipe(distinctUntilChanged())
.subscribe(_ => this.updateHeader([`pdf_header_r`]));
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really like this. This results in unnecessary traffic for most users when using svgs.

@bastianjoel bastianjoel assigned anbebe and unassigned bastianjoel and Elblinator Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Motion PDF Export: export without pre-selected svg logo
3 participants