The issue I am having is that once I add bookmarks to a pdf using the PdfContentEditor CreateBookmarkOfPage and open it in Adobe Acrobat Professional, Adobe says “Expected end of color space.” in a alert window. Here are the steps I took that brought me to this issue.
- Concatenated muliple pdf files using PdfFileEditor ConcatenateForms(stream, stream).
- PdfContentEditor BindPdf(stream).
- PdfContentEditor CreateBookmarkOfPage(string[], int[]).
- PdfContentEditor Save(stream).
- Save the stream to disk.
- Open the pdf in Adobe Acrobat Professional.