Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: How to convert Web Service Response into PDF

  1. #1
    Join Date
    Nov 2016
    Posts
    9

    Default How to convert Web Service Response into PDF

    Hello

    I'm a new Kettle user.
    I'm using a webservice Rest Client to generate PDF File, which is in the webservice response.
    But I don't know how to convert this response in a correct pdf file.

    I get the above result :

    Code:
    %PDF-1.4
    %????
    4 0 obj
    <</Linearized 1/L 49562/O 6/E 46403/N 1/T 49368/H [ 1396 219]>>
    endobj
                        
    xref
    4 55
    0000000016 00000 n
    0000001615 00000 n
    instead of

    Code:
    %PDF-1.4
    %âãÏÓ
    4 0 obj
    <</Linearized 1/L 49562/O 6/E 46403/N 1/T 49368/H [ 1396 219]>>
    endobj
                        
    xref
    4 55
    0000000016 00000 n
    0000001615 00000 n
    Thanks in advance

  2. #2
    Join Date
    Feb 2016
    Posts
    8

    Default

    Hi, did you try use replace in string? you could search for ??? and replace it with âãÏÓ.

    Best regards

  3. #3
    Join Date
    Jun 2012
    Posts
    5,534

    Default

    Don't use REST-Client to download a PDF document if you don't have to.

    Use Process-Files (Copy operation) instead.
    So long, and thanks for all the fish.

  4. #4
    Join Date
    Nov 2016
    Posts
    9

    Default

    Thanks for your answer.

    Instead I have used an Http step with a job executor to download the file.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.