How to Import PDF/Word to AEM sites, then track document page view ? | Community
Skip to main content
Level 3
November 4, 2016
Solved

How to Import PDF/Word to AEM sites, then track document page view ?

  • November 4, 2016
  • 5 replies
  • 2183 views

Hi everyone,
 

We just got information that we can import word/PDF to AEM site, when online user view the document, we can track every page view(by scroll down page).

maybe like this: http://help.adobe.com/zh_TW/scene7/using/scene7_help.pdf

Does anyone know where's the User Guide/Online Help? How to implement it.

Thank you.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by kautuk_sahni

Hi,

It always depends on how the PDF is been previewed in the browser.

it is always handled by the external library. If acrobat is doing it, then it is not possible.

But, if it is been done by some external application, then we may do it.

Example:-  Online demo: http://mozilla.github.com/pdf.js/web/viewer.html

//Here PDF is not actually a PDF, it is we page, here we can certainly do it.

By :-  $(window).scrollTop();

~kautuk

5 replies

kautuk_sahni
Community Manager
Community Manager
November 4, 2016

Hi, 

 

When you are seeing the PDF in browser, the scroll bars are handled by Acrobat.

Acrobat Reader is handling the scroll bars and I do not believe there is an API to get the scroll bar position. 

Also, if someone know it, please do share it with me as well.

 

Thanks and Regards

Kautuk Sahni

Kautuk Sahni
kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerAccepted solution
Community Manager
November 7, 2016

Hi,

It always depends on how the PDF is been previewed in the browser.

it is always handled by the external library. If acrobat is doing it, then it is not possible.

But, if it is been done by some external application, then we may do it.

Example:-  Online demo: http://mozilla.github.com/pdf.js/web/viewer.html

//Here PDF is not actually a PDF, it is we page, here we can certainly do it.

By :-  $(window).scrollTop();

~kautuk

Kautuk Sahni
han_tingAuthor
Level 3
November 7, 2016

Hi,

Thank you for all your assistance.

After internal discussion , it not shown as PDF, the doc will be changed to many pages. 

I am not sure where to change PDF/Word to many pages in AEM sites. Should I do this outside AEM?


Thank you.

kautuk_sahni
Community Manager
Community Manager
November 7, 2016

han tingl12799564 wrote...

Hi,

Thank you for all your assistance.

After internal discussion , it not shown as PDF, the doc will be changed to many pages. 

I am not sure where to change PDF/Word to many pages in AEM sites. Should I do this outside AEM?


Thank you.

 

I would encourage you to create a separate question for this. and mark this questions solved.

There are many JAVA librery that can be used to achive PDF to HTML pages (Example PDFBox etc).

Also reference article for PDF to HTML in AEM forums :-

1. https://forums.adobe.com/thread/2113321

2. http://www.cqblueprints.com/tipsandtricks/pdfrendering.html

~kautuk

Kautuk Sahni
han_tingAuthor
Level 3
November 8, 2016

Hi kautuk,
 

Ok, thank you so much.