diff --git a/README.md b/README.md index 4bda164..1f09186 100644 --- a/README.md +++ b/README.md @@ -9,10 +9,11 @@ This just adjusts the MediaBox value of the file without re-encoding the images I intend to expand it's funcionality and add executables soon. -It can only save PDFs in the 1.7 version, it doesn't seem to have a way to change this in PyMuPDF: +## Limitations +For now, it can only save PDFs in the 1.7 version, it doesn't seem to have a way to change this in PyMuPDF: https://github.com/pymupdf/PyMuPDF/discussions/3348 And they do not support PDF/A either: https://github.com/pymupdf/PyMuPDF/discussions/2169 -I used to run MuPDF with the "mutool clean" command after running this command to ensure the PDF/A conformity would not get lost. Mutool can't convert PDFs to PDF/A, but the clean command usually helps to keep a file already formatted as PDF/A safe. +I used to run MuPDF with the "mutool clean" command after running this command to ensure the PDF/A conformity would not get lost. Mutool can't convert PDFs to PDF/A, but the clean command usually helps to keep a file already formatted as PDF/A as such. diff --git a/pdf_page_size_fixer.py b/pdf_page_size_fixer.py index d93f2e7..7f02264 100644 --- a/pdf_page_size_fixer.py +++ b/pdf_page_size_fixer.py @@ -29,8 +29,8 @@ rotation = page.rotation page.set_rotation(0) - page_y = paper_size("A4")["y"] # this wil be a dedicated - page_x = paper_size("A4")["x"] # function + page_x = paper_size("A4")["x"] # this wil be a dedicated + page_y = paper_size("A4")["y"] # function pageH = imglist[2] pageW = imglist[3] mediaH = page.mediabox[2]