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

Custom Header #24

Closed
mdsunely opened this issue Jul 8, 2019 · 1 comment
Closed

Custom Header #24

mdsunely opened this issue Jul 8, 2019 · 1 comment

Comments

@mdsunely
Copy link

mdsunely commented Jul 8, 2019

Hello,

Is there any way that I can't add some extra images and text in header while exporting PDF?

Thanks & Regards
Mohammed Sunely

@wnabil
Copy link
Owner

wnabil commented Jul 9, 2019

I think it will work if you added the data at the top of the HTML and hided them with CSS or [hidden] directive, if this did not work then you can make it visible during the exporting and re-hiding it when its done
something like this:

this.displaySignature = true;
this.exportAsService.save(this.exportAsConfig, 'My File Name').subscribe(() => {
      // save started
      this.displaySignature = false;
});
<div id="sig" [hidden]="!displaySignature">
</div>

OR more secure with ngIf

<div id="sig" *ngIf="displaySignature">
</div>

I published a new version 1.2.6 in order to support the subscriptions in save method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants