Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problems getting PDF from http and sending per email

Former Member
0 Likes
584

Hello all,

my attached pdf got wrong format.

step1:

I get the pdf with fm HTTP_GET (blankstocrlf = 'Y')

This FM returns the PDF in an intenal table (so far all looks fine).

step2: (also tried without this step and BIN_TABLE (char format)

now i convert this tab into 'raw' data format with FM SO_SOLITAB_TO_SOLIXTAB

to append my data to hex_table of FM SO_DOCUMENT_SEND_API1

Filetyp is set as PDF.

As i receive my Email the PDF File is corrupted and if i open it with Texteditor i can see that the File forgot some Linefeed.

It wrote about 3 lines into 1 and so saved some SPACE witch would have been dropped if it wrote the line normally.

As i searched the forum i found that i can send the PDF as typ RAW and set RAW->TEXT in scot.

what i get now is a Text file containing the PDF Data. i can save this as PDF and all is fine.

But how can i attach a PDF to my Email without getting wrong format?

Would be fine if u could help me out.

Regards

Stefan Seeburger

Hello all,

my attached pdf got wrong format.

step1:

I get the pdf with fm HTTP_GET (blankstocrlf = 'Y')

This FM returns the PDF in an intenal table (so far all looks fine).

step2: (also tried without this step and BIN_TABLE (char format)

now i convert this tab into 'raw' data format with FM SO_SOLITAB_TO_SOLIXTAB

to append my data to hex_table of FM SO_DOCUMENT_SEND_API1

Filetyp is set as PDF.

As i receive my Email the PDF File is corrupted and if i open it with Texteditor i can see that the File forgot some Linefeed.

It wrote about 3 lines into 1 and so saved some SPACE witch would have been dropped if it wrote the line normally.

As i searched the forum i found that i can send the PDF as typ RAW and set RAW->TEXT in scot.

what i get now is a Text file containing the PDF Data. i can save this as PDF and all is fine.

But how can i attach a PDF to my Email without getting wrong format?

Would be fine if u could help me out.

Regards

Stefan Seeburger

1 REPLY 1
Read only

Former Member
0 Likes
458

solved the problem by moving the PDF File with Fuba HTTP_GET directly into the HEX-tab (typ solix)

without setting spacetolinefeed.

thx for reading

Regards

Stefan Seeburger