Yes, it's in the PDF spec, which is a very long document so I can't dig up
the link right now.
It's two parts. It's a hash of some content, if I recall correctly, and
this is repeated. When the document is edited, one half is kept the same
and the other is recomputed. In this way, it's half fixed, half
version-related.
I don't think PDF.js calculates these. It just reads what's stored in the
PDF.
On Tue, Aug 4, 2015, 05:43 Apurva Jalit <
apurva...@gmail.com> wrote:
> Hello folks,
> I am working on a browser extension that internally uses pdfjs to open pdf
> documents on the browser. For a certain use case I need to get the ID of
> the pdf opened by pdf js. I see this ID/URN or the identifier string for
> the pdf printed in the console(when using pdf viewer extension to open a
> How is this ID generated? Is there a standard algorithm for it?
>
> Thanks,
> Apurva Jalit
> _______________________________________________
> dev-pdf-js mailing list
>
dev-p...@lists.mozilla.org
>
https://lists.mozilla.org/listinfo/dev-pdf-js
>