server side annotation merging

Currently we are evaluating pdf.js express to view and redact documents
what is the recommended approach to burn redaction done on by pdf.js express
permanently on the PDF at server side

we are looking preferably server side APIs such as .NET so that we can write our own web APIs

Hi there!

Express does not offer redaction support (even on the client), but you might want to check out our sister product, PDFTron WebViewer. It offers full client side redaction support and many other features that are not included in Express. Doing everything on the client is cheaper much more scalable as you do not need to setup and maintain a server.

If you still want to do it server side, PDFTron also has a .NET SDK that can do redaction on the server.

If you wanted to combine Express with the .NET SDK I linked above, you could implement your own client side redaction tool (by just extending a rectangle annotation) and then convert that annotation to a redaction on the server. If you choose to go this route, we could provide guidance on the implementation.

I hope this help! Let me know if you have any more questions.

Logan

Thanks for the response
We would like to try out PDFjs.express on the client side + PDFtron server side as we would need a redaction done
on the browser side as well as server side

we’ll like to go with PDFJs.express as we’ll just need a PDF viewer + redactions . So let us know if we do following approach
>f you wanted to combine Express with the .NET SDK I linked above, you could implement your own client side redaction tool (by just extending a rectangle annotation) and then convert that annotation to a redaction on the server. If you choose to go this route, we could provide guidance on the implementation.

Hi there!

Yes, that approach should work. You can try out both PDFTron SDK and Express for free, so you should be able to get a POC going.

If you have any questions about the PDFTron SDK, you can reach out to the PDF solution engineers team and they will be able to help you out.

Once you’re ready to purchase, you should contact the PDFTron sales team to discuss pricing of their SDK.

Thanks,
Logan

Hi thereActually we are trying to see if we can license pdfJsexpress only and then create a custom rectangle annotation which will be saved in
XFDF format

Do we have sample snippets on how we can implement them in Angular ( TypeScript ) ?

Looking forward for your response.

Hi,

Yes you can create custom annotations in PDF.js Express and save them as XFDF.

If you want to bake them into the document, you could use our rest api.

We do not have Angular specific examples (PDF.js Express works with any framework), but here are a few guides/examples that should help:

We also plan on adding some better samples and guides regarding custom annotations in the future.

If you have any further questions please let us know!

Thanks,
Logan

Hi

Thanks for your response

We tried out a code snippet for pdf js express as following and it seems to show the redaction icon in WebViewer .

So following is my question

  1. Will the following functionality need PDFTron License ?
  2. can we have details of redaction ( coordinates ) in an XFDF file with following functionality ?

we could then use 3rd party SDK to burn redaction based on XFDF informations .

We could not get custom annotation worked for Angular ,please do let us know if you have any working sample for typescript

WebViewer(
{
path: “…/lib/public”,
enableRedaction: true,
},
this.viewer.nativeElement
);

Thanks
Chandan

Hi!

If your workflow is creating rectangle annotations on the client, and converting them to redactions on the server using a 3rd party SDK, then no you will not need a PDFTron license, just a PDF.js Express one.

As a side note, the enableRedaction: true option will not work in Express.

Express does not ship with Typescript definitions so no we do not have an angular typescript sample. We do however have a simple angular sample.

Thanks!
Logan