All Blogs

  • All Post
  • Frontend
  • Uncategorized
    •   Back
    • Website Template
    • Web PDF Viewer
    • Online Note
    • PDF.js annotation
[With code] Create online pdf annotation(pdf highlight, pdf underline) based on pdf.js
2022-07-18/

I have figured out the best solution of pdf.js annotation, only use pdf.js dist, very easy to import into your project ! Demo : https://demos.libertynlp.com/#/pdfjs-annotation.

How to use PDF.JS with React
2023-11-03/

This blog will show you our best research product about:① How to use PDF.js in React? ② How to use pdf.js based PDF annotation library in react?

PDF.js annotation library in pure JavaScript. Create and save PDF annotation.
2023-02-18/

PDF.js annotation library in pure JavaScript. Create and save PDF annotation. PDF highlight, PDF underline, PDF signature, PDF screenshot, PDF textbox, PDF draw, PDF polygon

How to transfer Javascript Object data when using Vue axios?
2022-07-06/

We have introduced how to set global parameters for Vue axios and how to execute a network request, this post will introduce: How to use Vue axios to carry Javascirpt Object data?

How to execute a synchronous Vue axios network request?
2022-07-05/

Through the previous posts, we know how to set request headers and global parameters for Vue axios. This post will introduce: How to use Vue axios to execute synchronous network request?

How to catch and handle Vue axios error?
2022-07-04/

It is very important to reasonably catch network error and report. This post will introduce: ① How to catch Vue axios error? ② How to notify the user? ③ How to notify website maintenance personnel?

How to set request timeout and header for Vue axios?
2022-07-03/

When we use Vue axios to initiate a request, we may need to do some global configuration. This post will introduce : ① How to add timeout to axios request? ② How to add request header to axios?

How to manipulate HTML elements with pure Javascript?
2022-07-02/

After getting HTML elements, we may need to use Javascript to manipulate. This post will introduce: ① How to listen element events? ② How to add or delete child elements? ③ How to change element attributes?

How to manipulate array of objects in Javascript?
2022-07-01/

In Javascript, we often need to manipulate array objects. This post mainly introduces: ① How to get the index of array elements? ② How to delete array elements? ③ How to slice array elements? ④ How to insert elements in the array? ⑤ How to concat arraies?

How to get HTML elements by using pure Javascript?
2022-07-01/

In many cases, we need to get HTML elements. This post will introduce: How to use pure Javascript to get elements by id, class, and tagname?

How to get HTML elements by using JQuery?
2022-07-01/

In many cases, we need to get HTML elements. This post will introduce: How to use JQury to get elements by id, class, tagname, xpath?

How to store and read data using localStorage in Javascript?
2022-06-30/

We can use localStorage in Javascript to access data. In this post you will learn: ① How to use localStorage?  ② How to save and read strings via localStorage? ③ How to store and read Json objects through localStorage?

How to use replace, split and slice methods of strings in Javascript?
2022-06-29/

In the web applications we develop, processing strings is the most commonly used function, this post will introduce : ① How to replace Javascript strings? ② How to split a string to generate an array? ③ How to slice a string by index?

How to read .txt file by Javascript and keep \r\n effect?
2022-06-29/

After we open the .txt file in the website, Javascript will automatically ignore the \r\n in the file. This post will cover : ① How to use to select files? ② How to read .txt file using Reader()? ③ How to keep \r\n effect of .txt file?

How to customize the overflow ::webkit-scrollbar?
2022-06-29/

we need to modify the overflow ::-webkit-scrollbar and ::-webkit-scrollbar-thumb style, make it narrower, modify the color of the ::-webkit-scrollbar-track

How to use javascript to achieve HTML element  hover effect?
2022-06-25/

When we develop website applications, we may need to show or hide some buttons when the mouse hovers over some elements, which is somewhat like the hover effect in css, but since we want changes the exist of elements.

How to figure out Vue axios CORS block?
2022-06-25/

When we develop website applications, we may use the front-end and back-end separation strategy or request resources from other domain. At this time, we may trigger the http CORS block.

How to load file from URL using PDF.js bypassing browser CORS?
2022-06-25/

The previous post has introduced how to disable the CORS (Cross-Origin Resource Sharing) of PDF.js, but PDF.js still cannot load the file from the URL, this is because the double CORS block of PDF.js and the browser.

How to use PDF.js to load file from URL and figure out CORS block?
2022-06-25/

Through the previous steps, we can open local file in PDF.js, but when we want to load file from URL, it will be failed because of  blocking the CORS(Cross-Origin Resource Sharing).

How to import and use PDF.js in a new project?
2022-06-24/

In the previous blog, several pdf webviewer solutions were introduced and compared, including WebViewer and PDF.js. In the end, the open source PDF.js was chosen.

First Page
12
Edit Template

“There are many people in the world who want to work hard but can’t, and people who work too hard and are exhausted. Please don’t use your efforts only to chase your own victory, please use them to help others.”

Quick links

Follow

Contact

libertynlp@163.com

+86-18385537403

Yangpu District, Shanghai