Is there a way to get page info in Embedded API?

Community Beginner ,
Oct 26, 2021 Oct 26, 2021

Copy link to clipboard

Copied

From Embedded API, is there a way to get the page info, such as total page count, current page number?

Views

70

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Oct 27, 2021 Oct 27, 2021

Yep, look at the getPDFMetaData API, https://opensource.adobe.com/pdfembed-sdk-docs/howtos_ui.html#viewer-api. 

Also getCurrentPage (bit lower on the page). 

If you need an example let me know (bit busy hence me not just sharing one 🙂

Likes

Translate

Translate
Adobe Employee ,
Oct 27, 2021 Oct 27, 2021

Copy link to clipboard

Copied

Yep, look at the getPDFMetaData API, https://opensource.adobe.com/pdfembed-sdk-docs/howtos_ui.html#viewer-api. 

Also getCurrentPage (bit lower on the page). 

If you need an example let me know (bit busy hence me not just sharing one 🙂

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 27, 2021 Oct 27, 2021

Copy link to clipboard

Copied

Thank you! That is what I need.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Oct 27, 2021 Oct 27, 2021

Copy link to clipboard

Copied

LATEST

This isn't the prettiest code, but this CodePen shows both: https://codepen.io/cfjedimaster/pen/NWvgPwy

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources