Skip to content

Instantly share code, notes, and snippets.

@02015678
Created June 11, 2016 06:52
Show Gist options
  • Save 02015678/1d5cb8f6a64a887740699b85bfca6f1a to your computer and use it in GitHub Desktop.
Save 02015678/1d5cb8f6a64a887740699b85bfca6f1a to your computer and use it in GitHub Desktop.
PDF: Convert Text to path and crop according to boarding box
@echo off
:: 在下一行设置Inkscape可执行文件的路径
set inkscape="C:\Program FIles\Inkscape\Inkscape.com"
:: 枚举当前文件夹下所有的PDF,将文本转换为路径,并抛弃页面边界以外的对象
for %%i in (*.pdf) do (
echo processing %%i
%inkscape% %%i -C -T -A %%i
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment