Skip to main content
New Participant
August 8, 2022
Question

PDF parsing

  • August 8, 2022
  • 5 replies
  • 5 views

Has anyone faced issue with char(0015)? I was trying fetching pdf text from file by splitting with char(0015). However, everything contains 15 in a document file is removed or replaced with blank value. Here is the code I tried for the same.

a!localVariables(

 local!text: getpdftext(document: 32030),

 local!test: a!map(id: "header", value: local!text),

 local!text1: split(

   /*local!test, char(0015)*/

   substitute(local!test, char(13), ""), char(10)

 ),

)

    5 replies

    stefanhelzle0001
    Brainy
    August 8, 2022

    Shouldn't this be rather

    substitute(local!test.value, char(13), ""), char(10)

    manjit.1486
    Known Participant
    August 8, 2022

    Thanks, Stefan Helzle for reaching out to us.
    Char(0015) gets you row-wise raw data almost like how it exits on pdf. However, the substitute function makes data lengthy.

    stefanhelzle0001
    Brainy
    August 8, 2022

    Sorry, I do not understand what you want to achieve or why you replace characters. Very confusing ...