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

req.Assets doesn't take filenames with / in them (e.g. images/logo.png). #20

Description

@titpetric

I am upgrading from the Go client from v6 to v7:

I wanted to add a glob("images/*") which i would then feed to req.Asset; the filename part of issuing gotenberg.NewDocumentFromPath would be images/logo.png.

If doing it like this, the rendering fails with "failed to generate the result PDF", and it works if I remove the images/ from the filename path. I suspect because the assets path should be created when adding it, and there's an os.Mkdir missing in gotenberg somewhere.

I am using the 6.2 docker image with this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions