xilopaint / alfred-pdf-tools

Optimize, encrypt and manipulate PDF files.
MIT License
149 stars 10 forks source link

Cant get it to work #4

Closed felipesafar closed 7 years ago

felipesafar commented 7 years ago

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

xilopaint commented 7 years ago

Click on the debug tool indicated in the screenshot and paste here what you get in the debug console after trying to use the Split file action:

screen shot 2017-06-28 at 11 22 04 am

felipesafar commented 7 years ago

Thank you for your quick reply.

Starting debug for 'Alfred PDF Tools'

[2017-06-28 11:47:04][ERROR: action.script] Traceback (most recent call last): File "/Users/felipesafar/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.124C0CB9-C413-4EFC-954F-7E46AFBD5B16/split_page_count.py", line 76, in sys.exit(main()) File "/Users/felipesafar/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.124C0CB9-C413-4EFC-954F-7E46AFBD5B16/split_page_count.py", line 46, in main merger.write(no_ext_path + (' (part {}).pdf').format(i + 1)) File "/Users/felipesafar/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.124C0CB9-C413-4EFC-954F-7E46AFBD5B16/PyPDF2/merger.py", line 230, in write self.output.write(fileobj) File "/Users/felipesafar/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.124C0CB9-C413-4EFC-954F-7E46AFBD5B16/PyPDF2/pdf.py", line 482, in write self._sweepIndirectReferences(externalReferenceMap, self._root) File "/Users/felipesafar/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.124C0CB9-C413-4EFC-954F-7E46AFBD5B16/PyPDF2/pdf.py", line 571, in _sweepIndirectReferences self._sweepIndirectReferences(externMap, realdata) File "/Users/felipesafar/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.124C0CB9-C413-4EFC-954F-7E46AFBD5B16/PyPDF2/pdf.py", line 547, in _sweepIndirectReferences value = self._sweepIndirectReferences(externMap, value) File "/Users/felipesafar/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.124C0CB9-C413-4EFC-954F-7E46AFBD5B16/PyPDF2/pdf.py", line 571, in _sweepIndirectReferences self._sweepIndirectReferences(externMap, realdata) File "/Users/felipesafar/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.124C0CB9-C413-4EFC-954F-7E46AFBD5B16/PyPDF2/pdf.py", line 547, in _sweepIndirectReferences value = self._sweepIndirectReferences(externMap, value) File "/Users/felipesafar/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.124C0CB9-C413-4EFC-954F-7E46AFBD5B16/PyPDF2/pdf.py", line 556, in _sweepIndirectReferences value = self._sweepIndirectReferences(externMap, data[i]) File "/Users/felipesafar/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.124C0CB9-C413-4EFC-954F-7E46AFBD5B16/PyPDF2/pdf.py", line 571, in _sweepIndirectReferences self._sweepIndirectReferences(externMap, realdata) File "/Users/felipesafar/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.124C0CB9-C413-4EFC-954F-7E46AFBD5B16/PyPDF2/pdf.py", line 547, in _sweepIndirectReferences value = self._sweepIndirectReferences(externMap, value) File "/Users/felipesafar/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.124C0CB9-C413-4EFC-954F-7E46AFBD5B16/PyPDF2/pdf.py", line 547, in _sweepIndirectReferences value = self._sweepIndirectReferences(externMap, value) File "/Users/felipesafar/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.124C0CB9-C413-4EFC-954F-7E46AFBD5B16/PyPDF2/pdf.py", line 547, in _sweepIndirectReferences value = self._sweepIndirectReferences(externMap, value) File "/Users/felipesafar/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.124C0CB9-C413-4EFC-954F-7E46AFBD5B16/PyPDF2/pdf.py", line 577, in _sweepIndirectReferences newobj = data.pdf.getObject(data) File "/Users/felipesafar/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.124C0CB9-C413-4EFC-954F-7E46AFBD5B16/PyPDF2/pdf.py", line 1611, in getObject retval = readObject(self.stream, self) File "/Users/felipesafar/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.124C0CB9-C413-4EFC-954F-7E46AFBD5B16/PyPDF2/generic.py", line 66, in readObject return DictionaryObject.readFromStream(stream, pdf) File "/Users/felipesafar/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.124C0CB9-C413-4EFC-954F-7E46AFBD5B16/PyPDF2/generic.py", line 585, in readFromStream % (utils.hexStr(stream.tell()), key)) PyPDF2.utils.PdfReadError: Multiple definitions in dictionary at byte 0x3270 for key /Type

Felipe Safar Cel.: (31) 99422-0000

Em 28 de jun de 2017, à(s) 11:26, xilopaint notifications@github.com<mailto:notifications@github.com> escreveu:

Click in the debug tool indicated in the screenshot and paste here what you get in the debug console after trying to use the Split file action:

[screen shot 2017-06-28 at 11 22 04 am]https://user-images.githubusercontent.com/11052366/27642140-467ae304-5bf4-11e7-8dd1-4fd1cc2df3b4.png

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/xilopaint/alfred-pdf-tools/issues/4#issuecomment-311676228, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Aan0qup_OL3Bvj-5tk7hUP8Fhhws0WpQks5sImKagaJpZM4OH5XW.

xilopaint commented 7 years ago

Please, try this build and tell me if it works.

Alfred PDF Tools.zip

felipesafar commented 7 years ago

It worked! Ty!

xilopaint commented 7 years ago

Nice. The next stable release will contain the fix. Thanks for spotting the bug.

felipesafar commented 6 years ago

Hi.

Can you please send me some kind of manual to explain how does it work?

I have been trying to use it however with no success. I have just started to use Alfred.

Thank you!

Felipe Safar Cel.: (31) 99422-0000

felipesafar commented 6 years ago

I have seen a lot of functions and I need to know how to trigger them.

Felipe Safar Cel.: (31) 99422-0000

Em 17 de ago de 2018, à(s) 15:45, Felipe Safar felipe.safar@hotmail.com<mailto:felipe.safar@hotmail.com> escreveu:

Hi.

Can you please send me some kind of manual to explain how does it work?

I have been trying to use it however with no success. I have just started to use Alfred.

Thank you!

Felipe Safar Cel.: (31) 99422-0000

xilopaint commented 6 years ago

How can you have just started to use Alfred? This issue was created by you one year ago. Btw, there's no manual. If you have a particular question you can ask.

felipesafar commented 6 years ago

Ok. Wait.

Last time there was people I worked with who were using my Mac for some tasks.

Now I’m trying to figure out how does Alfred works in order to use the workflows they download and to create my own.

Not easy…

Felipe Safar Cel.: (31) 99422-0000

Em 17 de ago de 2018, à(s) 16:04, Arthur Pinheiro notifications@github.com<mailto:notifications@github.com> escreveu:

How can you have just started to use Alfred? This issue was created by you one year ago. Btw, there's no manual. If you have a particular question you can ask.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fxilopaint%2Falfred-pdf-tools%2Fissues%2F4%23issuecomment-413960270&data=02%7C01%7C%7C4e4ef1f2febd4a8e2e5608d604744d3a%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636701294884519202&sdata=9YD4PRTArFXcuqgZ8AnUtk2HrCKtVEg7gDVdb4A7aM4%3D&reserved=0, or mute the threadhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAan0qqVEK0H2PPaZf--jXK5tOO0qjCWxks5uRxPMgaJpZM4OH5XW&data=02%7C01%7C%7C4e4ef1f2febd4a8e2e5608d604744d3a%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636701294884519202&sdata=5FwnbfWuVnz9Q7TtTI%2B8tdfAoSkQ%2BC%2BPqjtMo4xkL5M%3D&reserved=0.

xilopaint commented 6 years ago

No problem. As I said, feel free to ask what you want to know about this workflow. Also, if you are interested in Alfred in general the Alfred Forum should be your best bet.

felipesafar commented 6 years ago

Quick question:

There are so many thing I can do with Alfred PDF Tools. Can you explain me how to trigger ANY of them? The rest I guarantee I will figure out myself.

I did not make any changes to the last version.

Felipe Safar Cel.: (31) 99422-0000

Em 17 de ago de 2018, à(s) 16:28, Arthur Pinheiro notifications@github.com<mailto:notifications@github.com> escreveu:

No problem. As I said, feel free to ask what you want to know about this workflow. Also, if you are interested in Alfred in general the Alfred Forumhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.alfredforum.com&data=02%7C01%7C%7Cf82f638df35f4d3b5bd108d604779d54%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636701309113887070&sdata=JFrBASDsdhuvwMezPxGFBBV5guDoD57ECXROKE3KrFU%3D&reserved=0 should be your best bet.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fxilopaint%2Falfred-pdf-tools%2Fissues%2F4%23issuecomment-413966339&data=02%7C01%7C%7Cf82f638df35f4d3b5bd108d604779d54%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636701309113887070&sdata=i8urYU3EW0JSQSbijmQiVU6IK80qWGvJjIeBSjVtUlg%3D&reserved=0, or mute the threadhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAan0qn1G-BqZm_OzXtQ2Hb1np5kDlfQOks5uRxlcgaJpZM4OH5XW&data=02%7C01%7C%7Cf82f638df35f4d3b5bd108d604779d54%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636701309113887070&sdata=JabSinWYgIiM57vpRW38T228LHbCjGRkLe0W%2BmFunjs%3D&reserved=0.

xilopaint commented 6 years ago

Alfred PDF Tools is fully operated by file actions. Read this link to learn how to trigger a file action. Also, you can see #2 and #6 issues to have an idea.

felipesafar commented 6 years ago

Thank you!

Felipe Safar Cel.: (31) 99422-0000

Em 17 de ago de 2018, à(s) 17:00, Arthur Pinheiro notifications@github.com<mailto:notifications@github.com> escreveu:

Alfred PDF Tools is fully operated by file actions. Read this linkhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.alfredapp.com%2Fblog%2Ftips-and-tricks%2Ffile-actions-from-alfred-or-finder%2F&data=02%7C01%7C%7C5de9f4d6027a4f3e026d08d6047c1275%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636701328258546864&sdata=JnVUMwytO3cyMVJauFMEcQoKgp%2BGjSfkIx7M1BRUeH0%3D&reserved=0 to learn how to trigger a file action. Also, you can see #2https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fxilopaint%2Falfred-pdf-tools%2Fissues%2F2&data=02%7C01%7C%7C5de9f4d6027a4f3e026d08d6047c1275%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636701328258546864&sdata=wy%2F3s%2BGQm25OCr1n1hGToKJz1NJuWauHvkmNCy5f7rM%3D&reserved=0 and #6https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fxilopaint%2Falfred-pdf-tools%2Fissues%2F6&data=02%7C01%7C%7C5de9f4d6027a4f3e026d08d6047c1275%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636701328258546864&sdata=Re4a9sENNs0RYorSmy%2BpcTUm9mJcqxvJALtT6UOqcfU%3D&reserved=0 issues to have an idea.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fxilopaint%2Falfred-pdf-tools%2Fissues%2F4%23issuecomment-413973479&data=02%7C01%7C%7C5de9f4d6027a4f3e026d08d6047c1275%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636701328258546864&sdata=TrNn9LOky5KFJSnLG524xzxU61ReYhijWSM8LzJ5Ox4%3D&reserved=0, or mute the threadhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAan0qqlLTfNTbRR7VNrzBwg8IFA-Ujohks5uRyDYgaJpZM4OH5XW&data=02%7C01%7C%7C5de9f4d6027a4f3e026d08d6047c1275%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636701328258546864&sdata=0tumWmkjGKkMb7S%2FAu7DCvmAUf%2BDGUAePjlw3%2B5CHm4%3D&reserved=0.

manil88j86 commented 2 years ago

Hello! I am having issues getting this to work on Alfred 4. For example, here is the error log when I try to merge two PDFs:

image

[12:27:29.489] Logging Started... [12:27:37.628] Alfred PDF Tools[File Action] Processing complete [12:27:37.632] Alfred PDF Tools[File Action] Passing output '( "/Users/joannamain/Library/Mobile Documents/com~apple~CloudDocs/ForjoFurniture/Brochure/brochure.pdf", "/Users/joannamain/Library/Mobile Documents/com~apple~CloudDocs/ForjoFurniture/Brochure/CT-580-580-O Drawing .pdf" )' to Arg and Vars [12:27:37.633] Alfred PDF Tools[Arg and Vars] Processing complete [12:27:37.634] Alfred PDF Tools[Arg and Vars] Passing output '' to Keyword [12:27:42.351] Alfred PDF Tools[Keyword] Processing complete [12:27:42.354] Alfred PDF Tools[Keyword] Passing output 'test' to Run Script [12:27:43.551] ERROR: Alfred PDF Tools[Run Script] [3254] Error loading Python lib '/var/folders/rs/9pnx32rj6ql4pmg8sxbdt0100000gn/T/_MEIFk4zJt/Python': dlopen: dlopen(/var/folders/rs/9pnx32rj6ql4pmg8sxbdt0100000gn/T/_MEIFk4zJt/Python, 10): Symbol not found: _preadv Referenced from: /var/folders/rs/9pnx32rj6ql4pmg8sxbdt0100000gn/T/_MEIFk4zJt/Python (which was built for Mac OS X 12.0) Expected in: /usr/lib/libSystem.B.dylib

xilopaint commented 2 years ago

@manil88j86 your issue is not related to this one. Please, open a new issue using the template.

manil88j86 commented 2 years ago

Thank you. I have re-posted it here: [https://github.com/xilopaint/alfred-pdf-tools/issues/18#issue-1246341661]