The quick action PDF creator on the Mac I want it on Windows

at first

PXL_20201226_090521131.jpg I wanted to add the same function to Windows (although it is online) because I often use the function of creating PDF on Mac to collect image data scanned by a scanner and sometimes use Mac to use that function.

Operating environment

code

You can find the code on GitHub. You need to write the location (absolute path) where you put the python file in .bat.

Create PDF.bat


@echo off
 
if not "%~0"=="%~dp0.\%~nx0" (
     start /min cmd /c,"%~dp0.\%~nx0" %*
     exit
)

python G:\Python\PDF_creation_tool\create_pdf.py(Here is create_pdf.Absolute path of py) %*

Configuration

Enter shell: sendto with Windows key + R and put the .bat file in the file that comes out send_to_open.jpg スクリーンショット 2020-12-26 194718.jpg

Operation check

Select two image files and right click-> Send-> Create PDF.bat dawdawda.jpg

"I.pdf" was created. eqda.jpg

Figure opened in Chrome i.jpg

Impressions

Create PDF in the right-click menu I'm curious that it has a .bat extension, so I tried creating shortcuts and symbolic links, but I couldn't. ..

Progress point 90

reference

http://dalmore.blog7.fc2.com/blog-entry-191.html https://uguisu.skr.jp/Windows/bat_nowindow.html

Recommended Posts

The quick action PDF creator on the Mac I want it on Windows
I want to use Linux on mac
I want to do pyenv + pipenv on Windows
I want to use Python in the environment of pyenv + pipenv on Windows 10
I tried Python on Mac for the first time.
I want to AWS Lambda with Python on Mac!
I want to move selenium for the time being [for mac]
I tried running PIFuHD on Windows for the time being
I want to know the legend of the IT technology world
I tried changing the python script from 2.7.11 to 3.6.0 on windows10
I ran python on windows
I want to create a histogram and overlay the normal distribution curve on it. matplotlib edition
Life game with Python [I made it] (on the terminal & Tkinter)
I want to know if you install Python on Mac ・ Iroha
I installed Linux on my Mac
I want to tweet on Twitter with Python, but I'm addicted to it
I don't want to admit it ... The dynamical representation of Neural Networks
I want to display an image on Jupyter Notebook using OpenCV (mac)
Scrap the published csv with Github Action and publish it on Github Pages
Matching karaoke keys ~ I tried to put it on Laravel ~ <on the way>
I tried to install Docker on Windows 10 Home but it didn't work