[poppler] Loosing linefeeds with page.text()

Bilal Durrani bilal33 at hotmail.com
Thu Sep 30 17:22:06 UTC 2021


Hi everyone.

When I use the pdftotext utility, the text generated seems to preserve the multiple consecutive linefeeds in the document.

But when I use the following cpp API call:

ustring txt = page->text(poppler::rectf(), page::text_layout_enum::physical_layout);

The resulting txt drops multiple consecutive linefeeds and instead just has one line feed there.
Everything else seems to be the same if I use the API.

Anyone else seen this before?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler/attachments/20210930/08ee638a/attachment.htm>


More information about the poppler mailing list