‎2009 Sep 15 10:25 AM
Hi All,
We have a function module 'CONVERT_OTF' to convert OTF table to binary PDF table.
Do we have any function module for the reverse, to convert Binary PDF table to OTF format?
Thanks,
Amit gaba
‎2009 Sep 15 10:34 AM
hi Amit,
Check with Se37 by SCMS_BINARY_TO* and press F4 you will get
the function from binary to there respective formats.
Cheers!!
VEnk@
‎2009 Sep 15 10:50 AM
Hi,
I did not find any FM to convert to OTF there.
Thanks,
Amit
‎2009 Sep 15 10:54 AM
Hi,
Can you tell the purpose why you are converting binary to OTF is there any special reason for that ?
‎2009 Sep 15 10:56 AM
I dont think there is any FM avaliable to convert PDF binary format to OTF
‎2009 Sep 15 11:00 AM
Hi,
I want to merge two pdf documents into 1 pdf documents. You can do this if you have data in OTF format. Not sure if it is possible by any other way so was thinking if there is a way to convert PDF to otf format.
We have a standard FM to convert OTF to PDF so i thought there must be something to do the reverse.
Thanks,
Amit Gaba
‎2009 Sep 22 6:41 AM
Hi Amit,
it can be done by converting PDF to OTF and create spool in then you merge spools . After you get the single spool pass the spool
gv_spool = 'sigle spool'
p_file = going to save the file.
" submit rstxpdft4
with spoolno = gv_spool
with p_file = p_file
and return."
Thanks,
Harikiran
‎2009 Sep 22 6:47 AM
Hi Harikiran,
How do we convert PDF to OTF? I have not found any function to convert PDF to OTF yet.
How do we merge two spools?
Please let me know if you have done this conversion?
Thanks,
Amit
‎2009 Sep 22 7:22 AM
Hi Amit, <li> You need to explain where you are struck. What object you are working on? Working on Smartfrom? <li> First of all how are you getting PDF data to convert to OTF? <li> You need to explain your real requirement? Thanks Venkat.O
‎2009 Sep 22 7:56 AM
Hi Venkat,
I am creating a PDF document using Adobe forms.
My actual requirement was to embed contents of different word documents dynamically inside the adobe form which i came to know was not possible because microsoft word documents have different format as compared to PDF document.
So, i was thinking of converting word document into PDF and instead of embedding it into my adobe form pdf just merging it with the PDF created.
Now, the problem here was i get the pdf document in binary format inside my program and i need it in some different format which can be understood and merged. OTF format was a good option since we can merge two different documents if they are in OTF format.
Thanks,
Amit
‎2009 Sep 23 2:50 AM
‎2009 Sep 23 5:09 AM
Hi Harikiran,
I already have the PDF as binary table with me so i am not looking for converting PDF to binary but i am looking for converting binarty to OTF.
Thanks,
Amit
‎2009 Sep 23 6:35 AM
Hi,
I dont think there is any function moddule available for this.
But some work arounds could be tried.
Try appending all the binary data into an internal table.
Try converting the Binary data to text using FM SCMS_BINARY_TO_TEXT (MArk APPEND_TO_TABLE = 'X').
Then try writing that internal table as it is as list output into spool and then convert to pdf.
Check this link for writing to spool link:[https://wiki.sdn.sap.com/wiki/display/ABAP/PDFDownlaodByCreatingSpool+Request]
Im not sure how far this will work. Just give a try
‎2009 Sep 23 7:20 AM
Hi Keshu,
I have tried this but it does not work. When you convert PDF to binary it also stores the begin and end tag of pdf at the start and end of the table and if you append another pdf table then it comes after the end tag and does not get displayed in the table.
Since data is in hexadecimal format we can not understand where these tags start and end so can not insert the other pdf between those tags.
Thanks,
Amit
‎2009 Sep 23 7:39 AM
Hi Amit,
I have one question now your converting word document to pdf why? is there any form(media) to print in PDF...
or just your thinking to convert workd doc to PDF, Then convert PDF to OTF?
Thanks,
Hari
‎2009 Sep 23 7:46 AM
Hi Hari,
My actual requirement was to merge word and pdf but since both have a different format so thought of converting word to pdf and then merge them.
Converting word to pdf is not an issue. I think this should be possible the main issue is of merging two pdf documents.
Thanks,
Amit
‎2009 Sep 23 8:04 AM
‎2011 Dec 19 5:39 AM
‎2009 Sep 22 6:48 AM
Hi Amit
Still not solved ?
just check with this.
you can get the xstring format of pdf .
for each pdf concatenate the xstring in byte mode.
and then check if there is any FM for conversion.
MEan while i will check if there is any other solution available.
just want to know whether you are using adobe forms or generating pdf any other way ?
Your exact requirement ?
‎2009 Sep 23 7:00 AM
hi
check the link ** http://help.sap.com/search/highlightContent.jsp **
thanks and regards
Dhruv Kakkar
‎2009 Sep 23 9:42 AM
‎2009 Oct 01 12:01 PM
Hi Amit,
I found one you can download to your PC as a PDF.
But you need to convert PDF to binary both files and append each then convert pdf download in local drive.
report zfile_access.
data : g_path(128),
t_path type string.
data : begin of gt_lines occurs 0,
line type x,
end of gt_lines.
data : lt_value like tline occurs 0 with header line.
g_path = 'P:\FEMS_ABC\2850_specs.pdf'.
t_path = 'c:\temp\2850_specs.pdf'.
open dataset g_path for input in binary mode.
if sy-subrc = 0.
clear : lt_value.
refresh : lt_value.
do.
read dataset g_path into gt_lines-line.
if sy-subrc = 0.
append gt_lines.
else.
exit.
endif.
enddo.
endif.
close dataset g_path.
you append both binary files in gt_lines and download to t_path(.pdf) it will show nice pdf format.
call function 'GUI_DOWNLOAD'
exporting
filename = t_path
filetype = 'BIN'
tables
data_tab = gt_lines[].
‎2011 Dec 19 2:29 AM
Hello,
Have you resolved the problem? i have the same requirement as yours, If you already solved the issue, could you share the solution with me? Thanks a lot!
Best Regards,
Ivy