Hi All,
How to print pdf in selenium headless chrome driver in a java program? There are few examples by using "--print-to-pdf" option.
But this isn't working in a java program, could someone help me in this?
Thanks in advance! ~Balakumar
--
You received this message because you are subscribed to the Google Groups "headless-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to headless-dev+unsubscribe@chromium.org.
To post to this group, send email to headle...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/headless-dev/6ed7ed5e-2f6a-4cab-bfa0-6dbec12269da%40chromium.org.
I guess there is no print to pdf method you can call from Chromedriver, you may need to ask for the chromedriver people to add a new method for the pdf case.Another option is: let your program run chrome with --headless --print-to-pdf=/path/to/your/file, it should output the pdf file and exit chrome after doing that.Note that --print-to-pdf uses default printing settings that you can't change.
On Wed, Nov 15, 2017 at 3:11 AM, <balaku...@gmail.com> wrote:
Hi All,
How to print pdf in selenium headless chrome driver in a java program? There are few examples by using "--print-to-pdf" option.
But this isn't working in a java program, could someone help me in this?
Thanks in advance! ~Balakumar
--
You received this message because you are subscribed to the Google Groups "headless-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to headless-dev...@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to headless-dev+unsubscribe@chromium.org.
To post to this group, send email to headle...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/headless-dev/e18c6ca4-1684-4a6c-8205-14fec50385e9%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/headless-dev/e18c6ca4-1684-4a6c-8205-14fec50385e9%40chromium.org.