Topic Options
#35414 - 03/25/11 02:44 PM replace line feed in setjob info variable
Alain B Offline
OL Guru

Registered: 09/30/08
Posts: 101
Loc: Montreal
Hi I would like to replace all the line feed by a character like ^ in a setjob info variable

Top
#35417 - 03/25/11 04:29 PM Re: replace line feed in setjob info variable [Re: Alain B]
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4953
Loc: Objectif Lune Montreal
Alain,

Have you tried using a Search and Replace action? You can right-click, choose Control Characters, and you then choose Line Feed and you can replace it by whatever you want.

Hope that helps!

Regards,
Raphaƫl Lalonde Lefebvre

Top
#35418 - 03/25/11 04:35 PM Re: replace line feed in setjob info variable [Re: Raphael Lalonde Lefebvre]
Alain B Offline
OL Guru

Registered: 09/30/08
Posts: 101
Loc: Montreal
Hi Raphael I tryed but since the infut file is a PDF it gived me an error,

So What Im trying to do is to read a PDF ans save it in a text file

Top
#35436 - 03/28/11 10:58 AM Re: replace line feed in setjob info variable [Re: Alain B]
Alain B Offline
OL Guru

Registered: 09/30/08
Posts: 101
Loc: Montreal
Here the error message I got if i use search and replace plugin
before setting the setjobinfo variable

W3001 : Error while executing plugin: Error resolving data selection: Error opening 'C:\Documents and Settings\All Users\Application Data\Objectif Lune\PlanetPress Suite 7\PlanetPress Watch\Debug\debugD6452044.dat': The file is damaged and could not be repaired
Set Job Infos and Variables: W1603 : Plugin failed - 10:48:04

Witch seem logic since I replace all \n with ^ the mapping does not exist anymore

What I was looking is something after getting the value in a file will replace the content of the variable.

Top