Jump to content
Sign in to follow this  
GordonFreeman

PDF have spaces

Recommended Posts

GordonFreeman

i have a pdf who i need study, but this PDF have spaces on words. WHen reading i cannot see. But when i send to clipboard (copy) like this:

pract i cal l y

would: practically

i need correct word why i need translate this and it have more than 100 pages.

If i remove space characters with autoit i loss correct spaces

Any way?!?

Thanks for attention

Share this post


Link to post
Share on other sites
Edano

nope. not that i know of. you can only strip ALL spaces which would make it unreadable.

but maybe...... can you directly copy a sample text to here ?


[color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]

Share this post


Link to post
Share on other sites
GordonFreeman

In Foxit Reader when i select:

sample_pdf.jpg

I think it have a dif font to this little spaces, but space char code is the same =/

I tried with the StringStripWS with flag 8

Work but make unreadable (remove really including correct spaces)

I think have a way. Correct spaces (who i see) have two spaces, incorrect have one. I need create a code to do it. But i no know how to use StringRegExpReplace().

But ty i will try

i think best way is:

<Match any character except space><Match space><Match any character except space> and transform in

<Match any character except space><Match any character except space>

Edited by GordonFreeman

Share this post


Link to post
Share on other sites
Edano

check if those are normal spaces ( chr(20) ). if not, you do have a chance.

Edited by Edano

[color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]

Share this post


Link to post
Share on other sites
Edano

first stringreplace (string,"  ","%%")

second stringreplace (string," ","")

third strtingreplace(string, "%%"," ")


[color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]

Share this post


Link to post
Share on other sites
GordonFreeman

Lol, it Work now. Big Thanks Edano

Edited by GordonFreeman

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×