https://bugs.documentfoundation.org/show_bug.cgi?id=148025

--- Comment #1 from flywire <[email protected]> ---
Here's a better example:

*Text.txt*
def hello_world():
    print("Hello World!")

hello_world()
*File ends line above with no CRLF*

Method of capturing the text is important. Exporting as pdf with default
settings retains the leading spaces but drops blank lines.
Using: java -jar pdfbox-app-2.0.25.jar ExtractText test.pdf test1.txt

Version: 7.3.1.3 (x64) / LibreOffice Community
Build ID: a69ca51ded25f3eefd52d7bf9a5fad8c90b87951
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: en-AU (en_AU); UI: en-GB
Calc: threaded

============================================================

java -jar pdfbox-app-2.0.25.jar TextToPDF -standardFont Courier test.pdf
test.txt
java -jar pdfbox-app-2.0.25.jar ExtractText test.pdf test1.txt

Retains blank lines (but appends space to each line and a final CRLF.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to