Skip to main content
12 events
when toggle format what by license comment
Sep 27, 2019 at 18:55 comment added anshu957 @Jose: It does not add any blank page for me. May be some of your pdfs are blank. Could you check that? Of course you could select certain pdf files by editing the line in the script: if file.endswith(".pdf"): to if file.endswith(".pdf") and 'name' in file or something like that depending on your requirements.
Sep 27, 2019 at 10:40 vote accept jose
Sep 27, 2019 at 10:32 comment added jose Thank you. It seems that script is working but inserted some white blank pages in combined pdf file. By the way, is there any trick to combine only certain files based in name? Thanks.
Sep 26, 2019 at 21:55 comment added anshu957 @Jose, updated the code to reflect your "updated" requirements. If it works, could you kindly accept my answer.
Sep 26, 2019 at 21:54 history edited anshu957 CC BY-SA 4.0
modified code as per OP's updated requirements
Sep 26, 2019 at 21:31 comment added jose Thank you I need to combine all PDFs inside its own tmp folder not All PDFs inside ALL tmp folders. I've already updated question description...
Sep 26, 2019 at 21:08 comment added anshu957 @Jose : Edited my answer. This now works for automated finding of tmp folders as well
Sep 26, 2019 at 20:27 history edited anshu957 CC BY-SA 4.0
Corrected the code which generalizes the problem asked.
Sep 26, 2019 at 0:17 comment added jose Thank you for your reply. There are more than 1000 tmp folders so I need any automated script. Thank you again for your help.
Sep 25, 2019 at 20:04 history edited anshu957 CC BY-SA 4.0
Corrected the errors; introduced the justification and assumptions of my answer
Sep 25, 2019 at 19:56 history edited anshu957 CC BY-SA 4.0
Corrected the errors
Sep 25, 2019 at 19:44 history answered anshu957 CC BY-SA 4.0