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

Fail to create a pdf with an outline ('Invalid cross-device link') #193

Closed
RLesur opened this issue Oct 26, 2020 · 0 comments
Closed

Fail to create a pdf with an outline ('Invalid cross-device link') #193

RLesur opened this issue Oct 26, 2020 · 0 comments

Comments

@RLesur
Copy link
Collaborator

RLesur commented Oct 26, 2020

While working in a docker container (rocker/geospatial:3.6.3) with volume /home mounted, I got the following warning when running chrome_print():

Warning message:
In file.rename(output, input) :
  cannot rename file '/tmp/RtmpTpM0Kf/file1a565e6ab17.pdf' to 'paged.pdf', reason 'Invalid cross-device link'

The obtained pdf hasn't any outline.

IMO, this comes from

file.rename(output, input)

Using file.copy() instead of file.rename() solves the bug.

@RLesur RLesur closed this as completed in 8d8de3b Oct 26, 2020
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