Expand my Community achievements bar.

SOLVED

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

Avatar

Level 3

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.

1 Accepted Solution

Avatar

Correct answer by
Administrator

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

View solution in original post

5 Replies

Avatar

Administrator

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

Avatar

Correct answer by
Administrator

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

Avatar

Level 3

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.

Avatar

Administrator

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

Avatar

Level 3

Hi kautuk,
 

Ok, thank you so much.