cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Merge PDF of type TLINE

MadhavSharma
Explorer
0 Likes
833

Hi experts,

I have one requirement in which I have to merge multiple PDF's. The problem is that I am getting these PDF from spool. I have used the FM "CONVERT_ABAPSPOOLJOB_2_PDF " to get the spool request in a table with type TLINE. Now again I want to fetch another spool request and merge both the files in one PDF file.

I am unable to merge these files.

MadhavSharma_0-1723633872370.png

Even if I concatenate all it_pdf in byte mode. I am getting the last PDF only but not the whole or complete merged PDF.

Please help me with it.

Accepted Solutions (1)

Accepted Solutions (1)

Sandra_Rossi
Active Contributor
0 Likes

You're plain wrong in thinking that 2 PDF can be merged by just concatenating their bytes. You need special code to merge 2 PDF files; there's one class to do that, which you can find by searching the forum. Another solution is to merge the two ABAP List spool files into one ABAP List spool file before calling CONVERT_ABAPSPOOLJOB_2_PDF once.

Answers (0)