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

Wkhtmltopdf not supported the --allow command #34

@jishansiddique

Description

@jishansiddique

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions