Code Monkey home page Code Monkey logo

alfred-pdf-tools's Introduction

header Typing SVG

I'm an open-source enthusiast and maintainer, always eager to embrace new challenges and opportunities to solve real-world problems. My passion lies in exploring innovative technologies and designing automations to simplify people's lives.

Contact Me

e-mail X (formerly Twitter) URL

My Projects

Alfred Workflows

Raycast Extensions

  • Amazon Search: Amazon search with autosuggestions React TypeScript
  • Mercado Libre: Search Mercado Libre listings React TypeScript
  • Vade Mecum: Quickly access and navigate relevant Brazilian legislation React TypeScript
  • ViaCEP: Find Brazilian addresses and postal codes React TypeScript
  • CNPJ Lookup: Instantly access Brazilian CNPJ information React TypeScript

My Stats

GitHub stats

StackOverflow stats

alfred-pdf-tools's People

Contributors

xilopaint avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alfred-pdf-tools's Issues

REQ: Stamp PDF with image

Would like to see the ability to have a stamp workflow to stamp a PDF with a custom image. e.g. approve / Reject etc

Optimize not working

I don't know what the issue is, but all commands work except for Optimize. Can't figure out what's going on. ๐Ÿค”

PDF tools on Alfred 4 doesn't work

Version numbers
macOS Catalina Version 10.15.7
Alfred 4.6.6 [1303]

Description of the bug
When I try to run Alfred PDF Tools I get an error loading Python lib.
Is it because (as you can see in the error code) it says Python was built for Mac OS X 12.0? How do I fix this?

To reproduce
The same error seems to occur with any of the workflows. The example below if for when I try to merge two PDFs.

Debugger screenshot and copied debugger output
image

[12:19:39.699] Logging Started...
[12:19:46.854] Alfred PDF Tools[File Action] Processing complete
[12:19:46.857] Alfred PDF Tools[File Action] Passing output '(
"/Users/joannamain/Library/Mobile Documents/comappleCloudDocs/ForjoFurniture/Brochure/brochure.pdf",
"/Users/joannamain/Library/Mobile Documents/comappleCloudDocs/ForjoFurniture/Brochure/CT-580-580-O Drawing .pdf"
)' to Arg and Vars
[12:19:46.858] Alfred PDF Tools[Arg and Vars] Processing complete
[12:19:46.859] Alfred PDF Tools[Arg and Vars] Passing output '' to Keyword
[12:19:49.770] Alfred PDF Tools[Keyword] Processing complete
[12:19:49.773] Alfred PDF Tools[Keyword] Passing output 'test' to Run Script
[12:19:51.095] ERROR: Alfred PDF Tools[Run Script] [4265] Error loading Python lib '/var/folders/rs/9pnx32rj6ql4pmg8sxbdt0100000gn/T/_MEIKNEPnB/Python': dlopen: dlopen(/var/folders/rs/9pnx32rj6ql4pmg8sxbdt0100000gn/T/_MEIKNEPnB/Python, 10): Symbol not found: _preadv
Referenced from: /var/folders/rs/9pnx32rj6ql4pmg8sxbdt0100000gn/T/_MEIKNEPnB/Python (which was built for Mac OS X 12.0)
Expected in: /usr/lib/libSystem.B.dylib

How to use this workflow?

It seems like to be very useful alfred workflow. However, I can not find it working.

I tried hitting keywords like "optimize", "encrypt", "merge" etc in alfred, alfred shows other files
and options but not this workflow options.

My question is how to use this workflow?

Attempt:
selected a pdf file in finder.
opened alfred
typed split, I did not get split command from this workflow

This workflow is not working at all in Monterey 12.4

This workflow is not working at all in the latest public release version of macOS Monterey. When I try to perform any function of this workflow, say- Split by page count or merge of PDF's, absolutely nothing happens. No Output, No notifications, nothing. This is happening with all the function of this workflow

k2pdfopt can't be opened, because apple can't search it for malware

Describe the bug
When I try to use any file action from alfred-pdf-tools I get the message that Apple can't open the file because it can't look out for malware
Debugger information
[22:40:45.376] Alfred PDF Tools[File Action] Processing complete
[22:40:45.382] Alfred PDF Tools[File Action] Passing output '/Users/benjaminschreck/Downloads/Test.pdf' to Arg and Vars
[22:40:45.383] Alfred PDF Tools[Arg and Vars] Processing complete
[22:40:45.384] Alfred PDF Tools[Arg and Vars] Passing output '' to Keyword
[22:41:01.211] Alfred PDF Tools[Keyword] Processing complete
[22:41:01.212] Alfred PDF Tools[Keyword] Passing output '' to Replace
[22:41:01.212] Alfred PDF Tools[Replace] Processing complete
[22:41:01.213] Alfred PDF Tools[Replace] Passing output '150' to Run Script
[22:41:07.234] STDERR: Alfred PDF Tools[Run Script] .
22:41:01 workflow.py:2332 DEBUG ---------- Alfred PDF Tools (4.7.0) ----------
22:41:01 workflow.py:1692 DEBUG reading settings from /Users/benjaminschreck/Library/Application Support/Alfred/Workflow Data/com.xilopaint.alfredapp.pdftools/settings.json
22:41:01 workflow.py:2737 DEBUG update check not due
22:41:07 workflow.py:1985 DEBUG loading cached data: /Users/benjaminschreck/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.xilopaint.alfredapp.pdftools/__workflow_latest_version.pickle
22:41:07 workflow.py:2663 DEBUG set last run version: 4.7.0
22:41:07 workflow.py:2376 DEBUG ---------- finished in 5.873s ----------

Troubleshooting Information:

Workflow version

4.7

Alfred version

5.1.2

Python version

3.11.5

PyCryptodome version

Not Installed

Rosetta installation status

Installed

macOS version

13.5.2

Architecture

arm64

Screenshots
ScreenShot 2023-09-11 at 22 34 56@2x

Can't merge two pdfs

Looks like there's something wrong with one of the pdfs!? How can I enable debugging of the workflow or the Python scripts??

Alfred PDF Tools didn't work for me...

Describe the bug
I have tried using "Encrypt", "Merge", "Split by Page Count", "Slice in Multiple Files" via Alfred action, but nothing happened. I did understand it utilizes action instead of keywords, and I didn't change anything as well. I have also tried using different PDFs, still nothing happened.

To reproduce
I searched the PDF I wanted to apply action to via Alfred file search, then by pressing ^ (i.e. control key) towards the selected PDF to trigger the action, choosing specific actions mentioned above, then press "enter / return" on it, sadly nothing happened. All the workflow actions mentioned above gave the same ERROR message below.

Debugger information
ERROR: Alfred PDF Tools[Run Script] Traceback (most recent call last):
File "alfred_pdf_tools.py", line 125, in
def optimize(resolution: str, pdf_paths: list[str]) -> None:
TypeError: 'type' object is not subscriptable

Troubleshooting Information:

Workflow version

4.5

Alfred version

5.1.1

Python version

3.7.3

PyCryptodome version

Not Installed

Rosetta installation status

Not Installed

macOS version

13.5

Architecture

i386

Screenshots
error

PDF Tools don't work

Given Alfred v3.1 - Build 718
And Alfred PDF Tools v 1.1.3
When I want to Splitan PDF using Alfred by typing this command into it
Then no Alfred PDF Tools are shown in the DropDown

What am I doing wrong?

Using Split in Alfred

Using Merge in Alfred

I hope these Screenshots are useful.

Is there any information is missing?

Merging pdf files.

Work flow not working when pdf files selected form different paths.
"Can't merge pdf files from different paths."

Not working on macOS Monterey 12.3.1

This workflow is not working on Monterey 12.3.1. Please update it as this is an integral part of my daily workflow.

Thanks in advance for helping a technological illiterate person here

Extract Images

I would really like to be able to extract images of a PDF using this alfred workflow.

I've look at the documentation for pypdf and it's an existing feature : https://pypdf.readthedocs.io/en/latest/user/extract-images.html. Note this requires the installation of an additional dependency pip install pypdf[image].

As a suggestion for implementation details I would suggest all images are extracted in a folder that has the name of the PDF file, without its extension.

Not able to merge multiple files?

Hi there,

Thank you for building the worfklow. I can't seem to merge more than two files. When I try doing so, I get the "naming" prompt but the new file does not appear anywhere nor appears to have been executed according to the Notifications pane.

Best,

Cant get it to work

Hey.

As soon as I installed Alfred 3 I have downloaded your workflow. I think it might help me a lot on daily tasks. However I can't get it to work and I have already tried a million different ways.

I have installed it without changing any settings. Once I choose a PDF document on Finder I Double Tap Ctrl (hotkey for file selection) and choose SPLIT option from your workflow and then enter the max # of pages. Nothing happens.

What am I doing wrong? Screenshots in attach.

2017-06-28_09-23-17
2017-06-28_09-26-51

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.