wkhtmltopdf options should be a text field + New ...

I can't install Percollate on Linux Mint 20 Ulyana. I know I could use wkhtmltopdf but I know from experience that Percollate is superior.

LONG POST WARNING - lots of code copied in the interest of clarity.

I tried running "npm i percollate" and after installing it gave:
npm WARN enoent ENOENT: no such file or directory, open '/home/name/package.json'
npm WARN name No description
npm WARN name No repository field.
npm WARN name No README data
npm WARN name No license field.
[email protected]:~$ npm i percollate
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
- u/sindresorhus/is@0.14.0 node_modules/@sindresorhus/is
- [email protected] node_modules/ansi-regex
[email protected] node_modules/concat-stream/node_modules/safe-buffer -> node_modules/archiver-utils/node_modules/safe-buffer
string_[email protected] node_modules/concat-stream/node_modules/string_decoder -> node_modules/archiver-utils/node_modules/string_decoder
[email protected] node_modules/concat-stream/node_modules/readable-stream -> node_modules/archiver-utils/node_modules/readable-stream
- [email protected] node_modules/array-equal
- [email protected] node_modules/async-limiter
- [email protected] node_modules/buffer-from
- [email protected] node_modules/cacheable-request/node_modules/get-stream
- [email protected] node_modules/cacheable-request/node_modules/lowercase-keys
- [email protected] node_modules/cli-spinners
- [email protected] node_modules/clone
- [email protected] node_modules/color-name
- [email protected] node_modules/color-convert
- [email protected] node_modules/ansi-styles
- [email protected] node_modules/defaults
- [email protected] node_modules/defer-to-connect
- u/szmarczak/http-timer@1.1.2 node_modules/@szmarczak/http-timer
- [email protected] node_modules/duplexer3
- [email protected] node_modules/es6-promise
- [email protected] node_modules/es6-promisify
- [email protected] node_modules/escape-string-regexp
- [email protected] node_modules/fsevents
- [email protected] node_modules/get-stream
- [email protected] node_modules/has-flag
- [email protected] node_modules/http-cache-semantics
- [email protected] node_modules/json-buffer
- [email protected] node_modules/keyv
- [email protected] node_modules/lowercase-keys
- [email protected] node_modules/mimic-fn
- [email protected] node_modules/mimic-response
- [email protected] node_modules/clone-response
- [email protected] node_modules/decompress-response
- [email protected] node_modules/minimist
- [email protected] node_modules/mkdirp
- [email protected] node_modules/normalize-url
- [email protected] node_modules/nunjucks/node_modules/commander
- [email protected] node_modules/onetime
- [email protected] node_modules/os-tmpdir
- [email protected] node_modules/p-cancelable
- [email protected] node_modules/percollate/node_modules/agent-base
- [email protected] node_modules/percollate/node_modules/https-proxy-agent/node_modules/ms
- [email protected] node_modules/percollate/node_modules/https-proxy-agent/node_modules/debug
- [email protected] node_modules/percollate/node_modules/https-proxy-agent
- [email protected] node_modules/percollate/node_modules/ms
- [email protected] node_modules/percollate/node_modules/extract-zip/node_modules/debug
- [email protected] node_modules/percollate/node_modules/rimraf
- [email protected] node_modules/pn
- [email protected] node_modules/prepend-http
- [email protected] node_modules/resolve-url
- [email protected] node_modules/responselike
- [email protected] node_modules/cacheable-request
- [email protected] node_modules/signal-exit
- [email protected] node_modules/restore-cursor
- [email protected] node_modules/cli-cursor
- [email protected] node_modules/source-map-url
- [email protected] node_modules/strip-ansi
- [email protected] node_modules/supports-color
- [email protected] node_modules/chalk
- [email protected] node_modules/log-symbols
- [email protected] node_modules/to-readable-stream
- [email protected] node_modules/typedarray
- [email protected] node_modules/concat-stream
- [email protected] node_modules/percollate/node_modules/extract-zip
- [email protected] node_modules/urix
- [email protected] node_modules/url-parse-lax
- [email protected] node_modules/wcwidth
- [email protected] node_modules/got
- [email protected] node_modules/ora
- [email protected] node_modules/percollate/node_modules/puppeteer
/home/name
└─┬ [email protected]
├── u/mozilla/readability@0.3.0
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ └── string_[email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ └─┬ [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├── UNMET PEER DEPENDENCY [email protected]^2.5.0
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]~2.1.2 (node_modules/chokidanode_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN enoent ENOENT: no such file or directory, open '/home/name/package.json'
npm WARN [email protected] requires a peer of [email protected]^2.5.0 but none was installed.
npm WARN name No description
npm WARN name No repository field.
npm WARN name No README data
npm WARN name No license field.

I have learned that Puppeteer is deprecated [???] and that I should apparently be using something called Playwright. I am befuddled, because Percollate works swimmingly on Elementary OS. I use Elementary on the one device I have because my family and I like the ease of use, but it runs poorly on this other device. As stated previously I despise wkhtmltopdf because it doesn't format websites well at all. I want to be able to download articles and recipes and things to read in the evenings, printed out.

When I run "percollate --version" I get:
0.8.0

Percollate is installed but its dependencies seem to have all broken and / or been abandoned ... on this computer. Is this because Mint Ulyana is Ubuntu 20? Isn't Elementary OS Hera also Ubuntu 20? I'm so lost, I'm relatively new to Linux and still incapable of fixing things like this on my own. I can't write code at all so I wouldn't be able to go about fixing Percollate myself if it truly is broken.

Is there at the very least a way to makewkhtmltopdf format websites nicely without loads of errors?

Sorry for the long post but I wanted to be thorough. Oh yes, I also ran "PUPPETEER_PRODUCT=firefox npm i puppeteer" and that didn't fix anything. This is what happens when I try to run "percollate pdf https://winstonchurchill.org/resources/speeches/1940-the-finest-houwe-shall-fight-on-the-beaches/":

Fetching: https://winstonchurchill.org/resources/speeches/1940-the-finest-houwe-shall-fight-on-the-beaches/
Enhancing web page... ✓
(node:4596) UnhandledPromiseRejectionWarning: Error: Could not find browser revision 782078. Run "PUPPETEER_PRODUCT=firefox npm install" or "PUPPETEER_PRODUCT=firefox yarn install" to download a supported Firefox browser binary.
at ChromeLauncher.launch (/uslocal/lib/node_modules/percollate/node_modules/puppeteelib/cjs/puppeteenode/Launcher.js:86:23)
(node:4596) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:4596) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Does anyone know anything that would help me?
submitted by JonathanWillard to linuxquestions [link] [comments]

wkhtmltopdf margin per page

I'm a bit new with this. The project I work on is on Symfony 4, and I can't set margins per page. Here's my config.yml But the margin property is not working. What can I do about this?
knp_snappy: pdf: enabled: true binary: /uslocal/bin/wkhtmltopdf options: page-size: A4 dpi: 300 image-quality: 100 lowquality: false margin-top: 20mm
submitted by kudos4datboi to PHPhelp [link] [comments]

Golden boom gem wkhtmltopdf binary options Python Solved: UnicodeEncodeError: 'charmap' codec can't encode characters 3 Laravel PDF - Convert HTML to PDF

I have a website that was developed in 2012 in Symfony 2.4 by Yann, a developer who created about 70% of the site and myself who has been developing on it since about 2013-2014 Our site was origin... Description: Converts one or more HTML pages into a PDF document, using wkhtmltopdf patched qt. Global Options: --collate Collate when printing multiple copies (default) --no-collate Do not collate when printing multiple copies --cookie-jar Read and write cookies from and to the supplied cookie jar file --copies Number of copies to print into the pdf file (default 1) -d, --dpi Change the dpi ... binary path only, shold not add option strings: pdfkit.configuration(wkhtmltopdf='C: ... \Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe' options=pdf_options" config = pdfkit.configuration(wkhtmltopdf=path_wkthmltopdf) which is not working. You have to put the option to the call like. pdfkit.from_string(data, outputfile_name, configuration=config, options=pdf_options) Best regards Andreas ... gem install wkhtmltopdf-binary ... # PDFKit.new takes the HTML and any options for wkhtmltopdf # run `wkhtmltopdf --extended-help` for a full list of options kit = PDFKit. new (html, :page_size => ' Letter ') kit.stylesheets << ' /path/to/css/file ' # Get an inline PDF pdf = kit.to_pdf # Save the PDF to a file file = kit.to_file (' /path/to/save/pdf ') # PDFKit.new can optionally accept a URL ... Wkhtmltopdf Options and Usage. For Wkhtmltopdf more usage and options, use the following help command. It will display list of all available options that you can use with it. $ wkhtmltopdf --help Tags HTML to PDF Post navigation. Min – A Lighter, Faster and Secure Web Browser for Linux. 5 Reasons To Install Linux Today . If you liked this article, then do subscribe to email alerts for Linux ... What is it? wkhtmltopdf and wkhtmltoimage are open source (LGPLv3) command line tools to render HTML into PDF and various image formats using the Qt WebKit rendering engine. These run entirely "headless" and do not require a display or display service. There is also a C library, if you're into that kind of thing. It takes the configuration options as initial paramaters. The available options are: wkhtmltopdf - the location of the wkhtmltopdf binary. By default pdfkit will attempt to locate this using which (on UNIX type systems) or where (on Windows). meta_tag_prefix - the prefix for pdfkit specific meta tags - by default this is pdfkit- Method 3: Ruby gem bundling the wkhtmltopdf binary. There are three popular options: wkhtmltopdf-binary — provides version 0.12.6 for macOS, Linux 32bit and Linux 64bit. Not recommended for Heroku: the gem bundles three binaries and we need only one. Each binary is about 40 MB so the slug size would increase significantly. Fine for development. Wrapper options. The wrapper itself is configured by the following special options that can be passed to the constructor, set as object properties or via setOptions(): binary: Full path to the wkhtmltopdf command. Default is wkhtmltopdf which assumes that the command is in your shell's search path. * wkhtmltopdf options should be a text field with several lines. My value is: --header-center '[title]' --footer-font-size 9 --footer-right ' ... A binary executable relying on the QT framework, compiled natively on your server platform, either for x32 or x64 architectures, available for both Windows and GNU/Linux environments. Now run without X Server. Supports hearders, footers, CSS and ...

[index] [15158] [7013] [10231] [4293] [19211] [10171] [12617] [15435] [4632] [5170]

Golden boom gem wkhtmltopdf binary options

Set options for header and footer on your pdf Using #Barryvdh laravel snappy package, Convert html to pdf with Image #laravelpdf This package uses Wkhtmltopdf binary to convert html into pdf ... undefined goldenboom binary options trading complaints forums, golden boom no loss binary options strategy, golden boom free binary options signals trial. golden boom gem wkhtmltopdf binary ... Woah! Simon Cowell Has Ashley Marina Sing 3 Times! She Stuns The Judges - America's Got Talent 2020 - Duration: 9:53. America's Got Talent Recommended for you

http://binary-optiontrade.viotritas.tk