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

TOPIC:

Copied text missing spaces - v2.9.7 10 years 1 month ago #5402

  • rhill
  • rhill's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 21
  • Thank you received: 0
Hi I am currently using the iOS library v2.9.7. When I select the entire page content, there are instances where some words are all stuck together and are missing the spaces that appeared to be present in the PDF itself.

I am using the following code to select the entire page content:
    PDFPage *currentPage = [m_doc page:pageNumber];
    
    [currentPage objsStart];
    
    NSString *pageString = [currentPage objsString:0 :[currentPage objsCount]];

In the one instance, the text was returned as:

Results: Of eleven studies included, six were randomised controlled
trials, three were controlled clinical trials, and two were cohort studies.
Thedischargeplanningstrategiesusedvariedwidely,mostwerelimited
to preparation of discharge during in-patient treatment. Pooled risk

I would have attached a screenshot of the PDF showing the above region but the "Add File" option is not working...

Any ideas?
Attachments:

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

Last edit: by Raj123. Reason: 2nd attempt to add PDF

Copied text missing spaces - v2.9.7 10 years 1 month ago #5505

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

can you try file upload with a different browser?

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

Copied text missing spaces - v2.9.7 10 years 1 month ago #5549

  • rhill
  • rhill's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 21
  • Thank you received: 0
added PNG showing PDF file that caused resulted in the text being retrieved not having any spaces...

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

Copied text missing spaces - v2.9.7 10 years 1 month ago #5555

  • stronglee
  • stronglee's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 93
  • Thank you received: 2
Hi,
could you upload this pdf file let me check this problem.

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

Copied text missing spaces - v2.9.7 10 years 1 month ago #5559

  • rhill
  • rhill's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 21
  • Thank you received: 0
having real trouble attaching files :(

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

Copied text missing spaces - v2.9.7 10 years 1 month ago #5560

  • rhill
  • rhill's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 21
  • Thank you received: 0
Having to send the PDF to your support email address as there is absolutely no way I can get it to attach here in the forum...

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum