pdf parsing ---- pdf 文本解析

参考

工具列表:

中文 PDF 抽取工具

pdf 转图片

image rendering ---- render image with python 图片处理

图片存储网站

工具

Spacemacs Notes

切换国内源

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
    (defun dotspacemacs/user-init ()
      "Initialization function for user code.
    It is called immediately after `dotspacemacs/init', before layer configuration
    executes.
     This function is mostly useful for variables that need to be set
    before packages are loaded. If you are unsure, you should try in setting them in
    `dotspacemacs/user-config' first."
      (setq configuration-layer-elpa-archives
      '(("melpa-cn" . "http://elpa.emacs-china.org/melpa/")
        ("org-cn"   . "http://elpa.emacs-china.org/org/")
        ("gnu-cn"   . "http://elpa.emacs-china.org/gnu/")))
      )



  (setq configuration-layer-elpa-archives
        '(
          ("melpa-stable-cn" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/melpa-stable")
          ("melpa-cn" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/melpa/")
          ("org-cn"   . "http://mirrors.tuna.tsinghua.edu.cn/elpa/org/")
          ("gnu-cn"   . "http://mirrors.tuna.tsinghua.edu.cn/elpa/gnu/")))

自定义 layer 教程

  • 参考

Apidocjs

@apiIgnore 跳过在写的部份(未完成)

@apiSuccess 返回 Response 参数解释

  • 嵌套 json 解释

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    
    def crop_image():
        """
        @api {post} /crop_image             Request to crop image for a pdf
        @apiName                            CropImagePost
        @apiGroup                           Cropper
        @apiVersion                         0.1.0
        @apiSuccess {String} code           Status code.
        @apiSuccess {Object[]} data         Tasks' result list.
    
        @apiSuccess {Number} data.code         Status code of the Task.
        @apiSuccess {String} data.coordinates  Coordinate group of the Task.
    
        @apiSuccessExample {json} Success Response json:
        {
          "code": 2000,
          "data": [
            {
              "code": 2000,
              "coordinates": "1,166.6,539.87,16.5022,9.1575;1,166.6,539.87,16.5022,9.1575",
            }
          ],
        }
    
        """
        pass

一个函数 多个 method

  • 注意