on 01-06-2010 5:25 PM
Hi,
We are trying to display PDF from ABAP Web Dynpro. Its stored in the table as hex and we using following to display it
WDR_TASK=>CLIENT_WINDOW->CLIENT->ATTACH_FILE_TO_RESPONSE(
I_FILENAME = 'test.pdf'
I_CONTENT = XTEXT
I_MIME_TYPE = 'pdft'
).
When we trying to open it we getting an error "There was an error oppeneing this document."
If we save it as plain txt we can see that the data is some thing like this
%PDF-1.4
%âãÏÓ
34 0 obj <</Linearized 1/L 33832/O 36/E 6746/N 8/T 33105/H >>
endobj
............................
there is whole big file i don't want to post it here.
What can we do to be able to open this in PDF properly.
Thanks,
Oleg
Thanks all.
Issue was resolved. That was just corrupted data in xtext
Thanks,
Oleg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
How did you convert the table of Hexadecimel values to Xstring??
I am also facing the same problem as my requirement is same as you.
The i_content in attach_file_to_response method is a structure and i am getting the values in a table (Hexadecimal Values). I tried with looping the Hexadecimal table into a structure. After executing it gives the error as "The file is corrupted and it cant be opened".
Can you help me with this.
Thanks in advance.
Regards,
Sankar
Hi ,
The MIME type for PDF document is application/pdf
WDR_TASK=>CLIENT_WINDOW->CLIENT->ATTACH_FILE_TO_RESPONSE(
I_FILENAME = 'test.pdf'
I_CONTENT = XTEXT
I_MIME_TYPE = 'pdft'
Use application/pdf instead of pdft and check it..
Priya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check the Sample Webdynpro component - DEMO_ADOBE_OFFLINE, here they are using interactive form and when you click on Upload Button to select any adobe form it reads that form into XString and displays the form using Interactive Form UI element.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.