flipbook

Hello

I want to use the component flipbook

Is there a possibility of going to a specific page

Wait to quick answers

Tehila

Hi Tehila,

Were you referring to our flipbook example: https://www.pdftron.com/documentation/samples/js/flipbook? If so, the sample uses the turn.js library so you can refer to the documentation here: http://www.turnjs.com/. The method you are looking for is like to be this one though: http://www.turnjs.com/.

Andy Huang
Software Developer
PDFTron Systems Inc.

Thank for your answers,

I have more question:

  1. I use the component “bookmarks”,

And I take the output file (.pdf) and put it in the component “flipbook” ,

But when I load file pdf with “flipbook” I didn’t see the bookmarks.

Do you have something that I can see bookmarks in “flipbook”?

or maybe I need do something?

  1. Why the hyperlink don’t work in “flipbook”

Did I need to define something?

Wait for quick answer

Regards

Tehila

‫בתאריך יום ב׳, 24 באוג׳ 2020 ב-23:05 מאת ‪Andy Huang via PDFTron WebViewer‬‏ <‪pdfnet-webviewer@googlegroups.com‬‏>:‬

Hi Tehila,

The flipbook example uses turn.js which is a third party library and not a full PDF viewer per se. The sample simply uses WebViewer to process the PDF and renders the pages to turn.js. That is why you do not see bookmarks or hyperlinks. For bookmarks, you can probably create your own bookmarks panel using getBookmarks: https://www.pdftron.com/api/web/CoreControls.Document.html#getBookmarks. However, links may be a bit more difficult to handle as you would have to process the link annotations and create them over top canvases which will require the full API in this case.

Andy Huang
Software Developer
PDFTron Systems Inc.

Thanks so much for the answers

They were very helpful

Another question

Can I by code add text in a specific place on a page in specific page, .pdf format file?

Wait for quick answer

Regards

Tehila

‫בתאריך יום ד׳, 26 באוג׳ 2020 ב-7:29 מאת ‪Tehila Horvitz‬‏ <‪hstehilaeli@gmail.com‬‏>:‬

ב-יום שלישי, 25 באוגוסט 2020 בשעה 21:15:03 UTC+3, Andy Huang כתב/ה:

Hi Tehila,

You can add text to a specific place on a specific page. However, it will require the full API which will impact performance depending on what you are doing. I would recommend looking at some of the code samples on this but you will likely need to look at the ElementBuilder class.

https://www.pdftron.com/documentation/web/guides/features/edit/write/

https://www.pdftron.com/documentation/web/guides/features/edit/samples/

https://www.pdftron.com/api/web/PDFNet.ElementBuilder.html#main

Andy Huang
Software Developer
PDFTron Systems Inc.