Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Wkhtmltopdf not supported the --allow command #34

Open
jishansiddique opened this issue Jun 11, 2022 · 0 comments
Open

Wkhtmltopdf not supported the --allow command #34

jishansiddique opened this issue Jun 11, 2022 · 0 comments

Comments

@jishansiddique
Copy link

I've already created the one ticket in SO Link

I'm not able to execute the --allow command in wkhtmltopdf any suggestion about this?
or did I miss something?

I'm using the wkhtmltopdf for creating HTML to pdf it's working fine but for some additional requirements in the pdf, I have to add the background image/watermark on every page.

I go through this link wkhtmltopdf they mention a few commands below

--allow <path> Allow the file or files from the specified folder to be loaded (repeatable)
--background Do print background (default)

Is there any sequence issue in the below command argument? Here is my command argument.

--page-size A4 --footer-html http://localhost:49955/PDFExport/FooterUrl
--footer-left "Printed On 11/6/2022"
--footer-right "Page [page] of [topage]"
--footer-font-size "7"
--header-spacing 5
--margin-top 5mm
--margin-left 0mm
--margin-right 0mm --outline-depth 4
--background http://localhost:49955/PDFExport/BackgroundURL
--enable-local-file-access --allow "F:\bg-overlay.jpg"
"https://wkhtmltopdf.org/usage/wkhtmltopdf.txt" "F:\TestBackground.pdf"

image

Here you can see how PDF looks -> OutPut link

I'm not able to perform the below command let me know what I missed in the command.

--background
--enable-local-file-access
--allow

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant