Merge Rest API - how to flatten PDF?

Hey there!

How are you setting ‘readonly’ on the annotations? I just tried setting them all to read only and merging them and it worked the way you are expecting. Here is my code:

  const { annotManager, docViewer } = instance;

  const list = annotManager.getAnnotationsList();

  list.forEach(item => {
    item.ReadOnly = true
  })

  const xfdf = await annotManager.exportAnnotations();

  // ...rest of merge code

Thanks,
Logan