semvec/pypi-packages huggingface dataset:
pdfoutline 0.0.0
A command line tool for adding an outline to pdf files
License: MIT
Requires Python: >=3.7

# ![](img/bookmark_border-24px.svg) pdfoutline

A command line tool for adding an outline (a bookmark, or table of contents) to pdf files.

## Prerequisites

Make sure you have `ghostscript` installed.

```sh
# Mac
brew install ghostscript

# Debian, Ubuntu
sudo apt install ghostscript
```

`ghostscript` for windows can be installed from [the official website](https://www.ghostscript.com/releases/gsdnld.html)

## Usage

```shellsession
$ pip install pdfoutline
...

$ pdfoutline sample.pdf sample.toc sample-out.pdf
 |██████████████████████----------------------------| 118/263
```

optionally, the ghost script executable can be specified as well

```sh
pdfoutline sample.pdf sample.toc sample-out.pdf --gs_path 'C:\Program Files\gs\gs9.55.0\bin\gswin64.exe'
```

## Demo

![demo](img/demo.png)

Sample output:

![sample](img/demo-output.png)

## Sample Table of contents file: `sample.toc`

```toc
# this is a comment
First Chapter 1
    first section 1
        first subsection 1
    second section 4
    third section 5

# a command to fix a gap between pdf pages and content pages
+10

Second Chapter 10
    some entry 10
    some entry 11
```
pyqt-rounded-corners-lineedit 0.0.11
PyQt QLineEdit with rounded corners
License: MIT


# pyqt-rounded-corners-lineedit
PyQt QLineEdit with rounded corners

## Requirements
* PyQt5 >= 5.8

## Install
`python -m pip install pyqt-rounded-corners-lineedit`

## Included Packages
* <a href="https://github.com/yjg30737/absresgetter.git">absresgetter</a> - To get absolute path of resource file

## Detailed Description
Rounded corners, borderless line edit.

If you want to add the border, add code like below.

`lineEdit.setStyleSheet(lineEdit.styleSheet() + 'QLineEdit { border: 1px solid black; }')`

## Example
Code Sample
```python
from PyQt5.QtWidgets import QApplication, QGridLayout, QWidget
from pyqt_rounded_corners_lineedit import RoundedCornersLineEdit


class Widget(QWidget):
    def __init__(self):
        super().__init__()
        self.__initUi()

    def __initUi(self):
        lineEdit = RoundedCornersLineEdit()
        # if you want to set the border
        # lineEdit.setStyleSheet(lineEdit.styleSheet() + 'QLineEdit { border: 1px solid black; }')
        lay = QGridLayout()
        lay.addWidget(lineEdit)
        self.setLayout(lay)


if __name__ == "__main__":
    import sys

    app = QApplication(sys.argv)
    widget = Widget()
    widget.show()
    app.exec_()
```

## Result

![image](https://user-images.githubusercontent.com/55078043/164461900-e212c0cc-9f62-4451-bd62-880614a7c074.png)