Hi All,
I am facing a problem in PDF conversion, i have a custom program which converts spool to PDF and writes to server using CONVERT_ABAPSPOOLJOB_2_PDF. when i download loaded pdf file from server the file is truncated and also font size is increased than previous.
it was working fine previously, from past few days it's getting truncated and reported to be font size is increased. from program side there are no recent changes. below is the code.
if lv_otf is initial .
call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
exporting
src_spoolid = lv_spool
get_size_from_format = 'X'
pdf_destination = 'X'
importing
bin_file = lv_pdf
else.
call function 'CONVERT_OTFSPOOLJOB_2_PDF'
exporting
src_spoolid = lv_spool
no_dialog = ' '
pdf_destination = 'X'
importing
bin_file = lv_pdf
endif.
*** Converting XString format to SOLIX format ----
lt_pdf = cl_document_bcs=>xstring_to_solix( lv_pdf ).
open dataset lv_fname for output in binary mode .
if sy-subrc = 0.
loop at lt_pdf into ls_pdf.
transfer ls_pdf to pv_fname.
endloop.
close dataset lv_fname .
endif.
I am not able to get any clue, please help.
Regards,
shiva.