There is an appendAfterPageNumber
option to append in the middle.
append(sourcePdfBuf, appendedPdfBuf, options)
parameters:
- sourcePdfBuf -> pdf buffer to which to append the second param
- appendedPdfBuf -> pdf buffer appended after source
- options -> (optional)
options.appendAfterPageNumber -> the number of page from sourcePdfBuf which the pages from appendedPdfBuf should be inserted after
If you need to insert content in the middle of the page, you need to use the merge.