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

How to change the location of /tmp directory #21

Open
sant527 opened this issue Jul 28, 2020 · 4 comments
Open

How to change the location of /tmp directory #21

sant527 opened this issue Jul 28, 2020 · 4 comments
Labels

Comments

@sant527
Copy link

sant527 commented Jul 28, 2020

I am trying to crop a pdf file of 4000 pages.

My /tmp directory does not have more than 6GB

So is there any way i can tell the pdf-crop-margins to use a preferred /tmp directory location

I have set

export TMPDIR=/mylocation

but it didnt help

@abarker
Copy link
Owner

abarker commented Jul 28, 2020

The program currently uses whatever directory the Python function tempfile.mkdtemp returns. That function should respect the setting of the TMPDIR, TEMP, or TMP environment variables, according to the Python docs.

What version of pdfCropMargins are you using? Are you using pdftoppm to do the rendering (the default) or Ghostscript?

@abarker
Copy link
Owner

abarker commented Jul 29, 2020

I tried setting TMPDIR and running with Python 3.6 on Ubuntu, using the current version of pdfCropMargins (0.2.9), and it works for me.

@sant527
Copy link
Author

sant527 commented Aug 6, 2020

For me TMP worked thank you very much for the wonder ful program

@abarker
Copy link
Owner

abarker commented Nov 2, 2020

FYI, the new version 1.0.0, currently up on PyPI, should be faster and use less disk space when MuPDF cropping is used (now the default if you install with GUI). It does cropping in-memory, one page at a time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants