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

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

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

1 participant