Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
DocMaker Web UI is for converting various document formats to PDF format. Generate PDF documents from files such as Markdown, HTML, and CSS by combining them.
pip install docmake
git clone https://github.com/morisono/docmaker_webui.git docmake
cd docmake
pip install -r requirements.txt
usage:
[Examples]
- Generate a PDF:
docmake -i in_*.[html|pdf] -o out.pdf [options]
For example:
docmake -i in_*.html -o out.pdf --scale 0.8 --css ' h1 { color: red }'
- Encrypt/Decrypto a PDF:
docmake -i in.[html|pdf] -o out.pdf [options]
For example:
docmake -i demo.pdf -o demo.encrypted.pdf --encrypto --autogen
docmake -i demo.encrypted.pdf -o demo.decrypted.pdf --decrypto
- Read remote file:
docmake -i $gist --config config.yaml --verbose --qr 40
[Units]
You can use the following units for width, height, and margin options:
- px (pixels) - Default unit., in (inches)., cm (centimeters)., mm (millimeters).
[Formats]
The following paper formats are available for the format option:
- Letter, Legal, Tabloid, Ledger, A0, A1, A2, A3, A4 (default), A5
[PDF Metadata]
Metadata format: "/Key Value" pairs separated by space.
- /Title, /Author, /Subject, /Author, /Keyword, /Creator, /Producer, /CreateDate, /ModDate, /Trapped
Generate PDF from HTML pages.
options:
-h, --help show this help message and exit
-i INPUT [INPUT ...], --input INPUT [INPUT ...]
Input files.
-o OUTPUT, --output OUTPUT
Output file path.
--scale SCALE Scale of the printed page | 0.8 for 80 percent.
--displayHeaderFooter
Display header and footer.
--headerTemplate HEADERTEMPLATE
Add header template as [url|path|content].
--footerTemplate FOOTERTEMPLATE
Add footer template as [url|path|content].
--printBackground Print background images.
--landscape Use landscape paper orientation.
--pageRanges PAGERANGES
Page ranges to print | '1-5,8,11-13'.
--format FORMAT Paper format | 'A4'.
--width WIDTH Paper width | '10cm'.
--height HEIGHT Paper height | '10mm'.
--margin MARGIN Margin values (e.g., 'top 10mm right 10mm')
--css CSS Add css as [url|path|content]
--config CONFIG Path to the config file.
--emulateMedia {screen,print}
Type of emulate media.
--metadata METADATA Add metadata in the format '/Key: Value'. Example: '/Title Document'.
--verbose Print parameters when verbose.
--encrypto Encrypt a PDF file.
--autogen Automatically generate password for encryption.
--decrypto Decrypt a PDF file.
--regen Regenerate and send recovery key for decryption.
--webui [WIP] Launch Gradio web UI.
This section provides instructions on how to use the web user interface (Web UI) of DocMaker Web UI.
Start the app in the project directory:
docmake --webui
Access it in your web browser at http://127.0.0.1:7860.
Use the web interface to configure input files and options.
Click the "▶" button to generate a PDF.
This project is provided under the MIT License. See the LICENSE file for details.
For inquiries regarding support, including questions and bug reports, please use GitHub Issues.
FAQs
Generate pdf files from other format documents.
We found that docmake demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.