Jeff-Lewis / alivepdf

Automatically exported from code.google.com/p/alivepdf
0 stars 0 forks source link

Parentheses characters are not escaped anymore in output #92

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try exporting a PDF containing a text with a parenthese (only one to 
have the bug)
2. Open your PDF in Acrobat  => you will have the sprintf string shown in 
your display
3. Open your PDF with a text editor to see that your parentheses are not 
escaped anymore

What is the expected output? What do you see instead?

- With older version 0.1.4.4
q 0.043137254901960784 0.2 0.23529411764705882 rg BT 481.00 350.00 Td ( 
elements\)) Tj ET Q

- With new version 0.1.4.6
q 0.043137254901960784 0.2 0.23529411764705882 rg BT 481.00 350.00 Td ( 
elements)) Tj ET Q

What version of the product are you using? On what operating system?

0.1.4.6

Please provide any additional information below.

Original issue reported on code.google.com by crazyf...@gmail.com on 20 Nov 2008 at 10:19

GoogleCodeExporter commented 8 years ago
Hi crazyfrog,

Nice bug !
I will fix it now.

Thanks,

Thibault

Original comment by thibault.imbert on 27 Nov 2008 at 5:27

GoogleCodeExporter commented 8 years ago
Hi crazyfrog,

If you want to patch it manually for the moment :

check line 3091 and replace by this line :

return source.split(search).join(replace);

let me know,
best,

Thibault

Original comment by thibault.imbert on 27 Nov 2008 at 5:43

GoogleCodeExporter commented 8 years ago
Thanks thibault,

it's working just fine !

Original comment by crazyf...@gmail.com on 1 Dec 2008 at 9:32

GoogleCodeExporter commented 8 years ago
Hi i got the same problem here... but i don't see anything that can be replaced 
by
this command on line 3091. Help!

* @author Thibault Imbert
* @version 0.1.4.6 Current Release

Original comment by diac...@gmail.com on 2 Feb 2009 at 1:40

GoogleCodeExporter commented 8 years ago
Search for this function findAndReplace (approximatly line 2760) :

private function findAndReplace ( search:String, replace:String, source:String 
):String
{
   //return source.replace( new RegExp ( search ), replace );
   return source.split(search).join(replace);
}

Original comment by crazyf...@gmail.com on 3 Feb 2009 at 9:09

GoogleCodeExporter commented 8 years ago
I found it.
It works!

Thanks.

ps: Now i am on a problem with "accents" on mac...

Original comment by diac...@gmail.com on 3 Feb 2009 at 2:06