xilopaint Posted July 7, 2023 Author Share Posted July 7, 2023 @slyfox Now I see I committed a mistake when packaging the workflow. Could you delete your copy, download it again and tell me if it works? Link to comment
slyfox Posted July 7, 2023 Share Posted July 7, 2023 @xilopaint Re-downloaded. No more errors, but Mergin PDF command does nothing. ### Workflow version 4.3.1 ### Alfred version 5.1.1 ### Python version 3.9.6 ### PyCryptodome version Not Installed ### Rosetta installation status Installed ### macOS version 13.4 ### Architecture arm64 Link to comment
xilopaint Posted July 7, 2023 Author Share Posted July 7, 2023 @slyfox I need the Alfred Debugger output as well. Link to comment
xilopaint Posted July 8, 2023 Author Share Posted July 8, 2023 On 3/29/2023 at 11:21 PM, chumido said: I have just tried, but I am still getting that error. Hey @chumido, do you still have this error with v4.3.1? If so, I have some time to debug your issue. Link to comment
slyfox Posted July 8, 2023 Share Posted July 8, 2023 4 hours ago, xilopaint said: @slyfox I need the Alfred Debugger output as well. [22:10:12.341] Logging Started... [22:10:30.863] Alfred PDF Tools[File Action] Processing complete [22:10:30.875] Alfred PDF Tools[File Action] Passing output '( "/Users/ivan/Library/CloudStorage/Dropbox/1.pdf", "/Users/ivan/Library/CloudStorage/Dropbox/2.pdf" )' to Arg and Vars [22:10:30.877] Alfred PDF Tools[Arg and Vars] Processing complete [22:10:30.878] Alfred PDF Tools[Arg and Vars] Passing output '' to Keyword [22:10:32.307] Alfred PDF Tools[Keyword] Processing complete [22:10:32.308] Alfred PDF Tools[Keyword] Passing output 'May' to Run Script [22:10:32.575] ERROR: Alfred PDF Tools[Run Script] . 22:10:32 workflow.py:2332 DEBUG ---------- Alfred PDF Tools (4.3.1) ---------- 22:10:32 workflow.py:1692 DEBUG reading settings from /Users/ivan/Library/Application Support/Alfred/Workflow Data/com.xilopaint.alfredapp.pdftools/settings.json 22:10:32 workflow.py:2737 DEBUG update check not due 22:10:32 workflow.py:2352 ERROR 'NumberObject' object has no attribute 'indirect_reference' Traceback (most recent call last): File "/Users/ivan/Library/Mobile Documents/com~apple~CloudDocs/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C5A658BE-E81B-480E-BBF0-A024BF54E903/workflow/workflow.py", line 2346, in run func(self) File "/Users/ivan/Library/Mobile Documents/com~apple~CloudDocs/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C5A658BE-E81B-480E-BBF0-A024BF54E903/alfred_pdf_tools.py", line 583, in main merge(query, pdf_paths) File "/Users/ivan/Library/Mobile Documents/com~apple~CloudDocs/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C5A658BE-E81B-480E-BBF0-A024BF54E903/alfred_pdf_tools.py", line 80, in wrapper func(*args, **kwargs) File "/Users/ivan/Library/Mobile Documents/com~apple~CloudDocs/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C5A658BE-E81B-480E-BBF0-A024BF54E903/alfred_pdf_tools.py", line 301, in merge writer.append(reader) File "/Users/ivan/Library/Mobile Documents/com~apple~CloudDocs/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C5A658BE-E81B-480E-BBF0-A024BF54E903/pypdf/_writer.py", line 2659, in append self.merge( File "/Users/ivan/Library/Mobile Documents/com~apple~CloudDocs/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C5A658BE-E81B-480E-BBF0-A024BF54E903/pypdf/_utils.py", line 442, in wrapper return func(*args, **kwargs) File "/Users/ivan/Library/Mobile Documents/com~apple~CloudDocs/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C5A658BE-E81B-480E-BBF0-A024BF54E903/pypdf/_writer.py", line 2755, in merge elif dest["/Page"].indirect_reference.idnum in srcpages: AttributeError: 'NumberObject' object has no attribute 'indirect_reference' 22:10:32 workflow.py:2355 INFO for assistance, see: https://github.com/xilopaint/alfred-pdf-tools 22:10:32 workflow.py:2376 DEBUG ---------- finished in 0.021s ---------- Link to comment
xilopaint Posted July 8, 2023 Author Share Posted July 8, 2023 @slyfox have you tried other PDF files? Link to comment
slyfox Posted July 8, 2023 Share Posted July 8, 2023 @xilopaint Interesting. It works on other files. Link to comment
xilopaint Posted July 8, 2023 Author Share Posted July 8, 2023 12 minutes ago, slyfox said: @xilopaint Interesting. It works on other files. Could you share the offending files via private message so I can try to debug the issue? Link to comment
xilopaint Posted July 12, 2023 Author Share Posted July 12, 2023 On 7/8/2023 at 5:24 PM, xilopaint said: Could you share the offending files via private message so I can try to debug the issue? @slyfox I guess I have a solution for this issue. Do you mind sharing the files by private message so I can test? Link to comment
xilopaint Posted July 24, 2023 Author Share Posted July 24, 2023 (edited) Update (v4.4) What’s Changed New icon. Enhanced performance for Optimize and Deskew file actions on Apple Silicon. Dropped support for Optimize and Deskew actions on Intel Macs. Improved Merge file action, allowing the first selected PDF document’s filename to be used for the output PDF file with an appended suffix. Full Changelog: https://github.com/xilopaint/alfred-pdf-tools/compare/v4.3.1…v4.4 Edited July 24, 2023 by xilopaint Link to comment
xilopaint Posted July 24, 2023 Author Share Posted July 24, 2023 (edited) I’ve dropped support for Optimize and Deskew on Intel Macs. This might change if someone came up with a Homebrew formula for k2pdfopt which would not only allow full compatibility with Intel architecture, but also with Alfred Gallery. Edited July 24, 2023 by xilopaint Link to comment
xilopaint Posted July 24, 2023 Author Share Posted July 24, 2023 On 7/8/2023 at 5:11 PM, slyfox said: @xilopaint Interesting. It works on other files. I think your issue has been fixed in the latest release. Link to comment
xilopaint Posted July 30, 2023 Author Share Posted July 30, 2023 Update (v4.5) What’s Changed Improved progress bar. Full Changelog: https://github.com/xilopaint/alfred-pdf-tools/compare/v4.4…v4.5 Link to comment
jl_al Posted January 13 Share Posted January 13 (edited) Hi there. Trying to install this workflow on my M3 Macbook Pro. As per the workflow page the last line states: "This workflow relies on pypdf library by Martin Thoma, docopt by Vladimir Keleshev and K2pdfopt by willus." I have installed pypdf with: $ brew install pymupdf I have installed docopt with: $ brew install python-docopt But I'm stuck with installing K2pdfopt. I have downloaded the corresponding arm file and done a chmod 755 to it to make it executable but don't know how to point Alfred PDF Tools to it... Any help appreciated. Thanks! Edited January 13 by jl_al Link to comment
xilopaint Posted January 13 Author Share Posted January 13 (edited) @jl_al You don't need to install anything. The required dependencies are bundled with the workflow. Edited January 13 by xilopaint Link to comment
xilopaint Posted April 14 Author Share Posted April 14 Update (v5.0) What’s Changed Added support for text extraction via file action. Full Changelog: https://github.com/xilopaint/alfred-pdf-tools/compare/v4.9...v5.0 Link to comment
xilopaint Posted April 14 Author Share Posted April 14 (edited) On 9/6/2022 at 12:16 AM, Dylzzz said: Hi @xilopaint, looks like you have a great workflow here. I am fairly new so I'm not sure whats possible. As per my first post: I would love to know if its possible to do text extraction from PDF's Text extraction support has been added. Edited April 14 by xilopaint Link to comment
katie Posted July 14 Share Posted July 14 Hi @xilopaint, I'm back to work after a long leave; I have a lot to catch up on. Your workflow is still one of my most used workflows! I have a feature request, but, of course, it is not at all necessary and please disregard if this would not be helpful to you or others. Would it be possible to add file size reduction to this workflow? I often make pdf's with many images, then need to reduce the file size to be able to send via email. Link to comment
vitor Posted July 15 Share Posted July 15 14 hours ago, katie said: I often make pdf's with many images, then need to reduce the file size to be able to send via email. There’s PDF Compress. katie 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now