Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC:

Page selection Index 7 years 1 month ago #11941

  • cornelius
  • cornelius's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 13
  • Thank you received: 0
Hi

It seems like Radaee adds extra carriage return and new line feeds to the pdf text on iOS to render the page. When selecting the same text from PDFKit on macOS the pdf text does not contain the same carriage return and new line feeds as the text selected on iOS. Because of this the character index is not the same on Radaee for iOS and PDFKit for macOS.
Is there a way to remove the extra carriage return and new line feeds added by Radaee so that the character index is the same between Radaee for iOS and PDFKit for macOS?

Please Log in or Create an account to join the conversation.

Page selection Index 7 years 1 month ago #11956

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,

PDF content is not grouped in lines, paragraphs or columns, but is a sequence of characters with defined positions.
Space characters or carriage return are interpreted by extraction algorithms but there is not a specific way to do it, as it is not a PDF spec.
You can also try using different reader like MacOS PDFKit, Acrobat Pro e Windows 10 PDF Reader, and you will get different results.

Anyway we are evaluating with developers how to handle this case

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum