txt2pdf | Text to PDF converter with Unicode support | Document Editor library
kandi X-RAY | txt2pdf Summary
kandi X-RAY | txt2pdf Summary
Text to PDF converter with Unicode support. This is a Python 2 / 3 script using the ReportLab module for generating PDF documents. It is intended to be used with monospace True Type fonts. It can be hacked for being used with Type 1 Postscript fonts, but such fonts contain less characters than TTF ones.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Generate PDF document
- Generates a page of text
- Generates a page
- Generator that yields each line of text
- Expand tabs in a string
- Create a new page
- Iterate over the document
- Write chunk to page
- Align up x by n
- Write text to stderr
txt2pdf Key Features
txt2pdf Examples and Code Snippets
Community Discussions
Trending Discussions on txt2pdf
QUESTION
With reference to PDF to Github Flavored Markdown
Now with PDF support on GitHub, I have a PDF file (generated by my own txt2pdf converter) not shown correctly on GitHub, but okay when using Adobe Reader or Google Chrome.
Is it an issue with GitHub PDF preview, or my own converter? (I do not know which channel to report to, hence this post on SO)
My PDF file is v1.4.
Example PDF file: https://github.com/txt2pdf/pdfdump/blob/master/sample.pdf
Thanks @VonC and @mkl for both of your kind feedback. I have fixed the program and recalculate the xref table, but this sample2.pdf
still has some unknown issue where online PDF repair tool could not detect.
https://github.com/txt2pdf/pdfdump/blob/master/sample2.pdf
LATEST UPDATE: I remove the "T*" from each text block (EDIT: and also use capital letter "/F1" instead of "/f1") when generating the output PDF file. Now it is shown correctly on GitHub. So the issue was with my converter, not GitHub's.
...ANSWER
Answered 2020-Oct-01 at 16:00The uploaded sample.pdf
, when downloaded... is opened as a blank page by the pdf reader in Chromium.
Check if you have a directive like git config core.autocrlf
set to true. That could have changed eol (end of line) characters in the file.
Clone the repository, and check the sha1 of the cloned pdf:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install txt2pdf
You can use txt2pdf like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page