سؤال

I'm developing a plugin for Adobe Acrobat X with C++ that copies all text from opened .pdf in a .txt file. I've tried text runs and text characters from PDEText, it copies all text but it concatenates all lines.

Q: how can I find where end line is in my text?

هل كانت مفيدة؟

المحلول

I made it!

I parse the text letter by letter and I check if they're on the same row verifying top or bottom attribute from ASFixedRect ( I use PDETextGetBBox() to get ASFixedRect ).

Farewell!

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top