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 transparent background option instead white #113

Open
andremacola opened this issue Sep 18, 2018 · 2 comments
Open

Add transparent background option instead white #113

andremacola opened this issue Sep 18, 2018 · 2 comments

Comments

@andremacola
Copy link

Here an example how to on src/index.js

  relaxedGlobals.puppeteerPage = await browser.newPage()
  relaxedGlobals.puppeteerPage._emulationManager._client.send(
    'Emulation.setDefaultBackgroundColorOverride',
    { color: { r: 0, g: 0, b: 0, a: 0 } }
  );
@DanielRuf
Copy link
Contributor

DanielRuf commented Sep 19, 2018

Hi, can you deacribe the usecase that you want to cover with this?

I think adding this and more of the many Puppeteer options is not a good idea.

There should be a config object to set this and others which are used by Puppeteer.

@andremacola
Copy link
Author

Hi @DanielRuf sorry for the delay. Well, I'm developing an automated newspaper system using puppeteer with relaxed and one of the workflow process is generating the PDF than change to CMYK colors with our print profiles. After that a person responsible for printing the steel plate "marry" the pdf pages of the newspaper using an appropriate software.

For this last step, is better using the PDF's with transparent backgrounds, with no white rectangle.

I'm sorry if it seems confusing.

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

No branches or pull requests

2 participants