Skip to content
This repository has been archived by the owner on Dec 22, 2018. It is now read-only.

How to Upload and show pdf file #52

Open
ghost opened this issue Oct 4, 2017 · 1 comment
Open

How to Upload and show pdf file #52

ghost opened this issue Oct 4, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 4, 2017

No description provided.

@loky003
Copy link

loky003 commented Dec 19, 2017

Initially save the annotations as a json file. Later you can render Pdf with FPDI (PHP class file). while rendering pdf with fpdi, you can extract json and add those annotations to your pdf

(function () {
function handleSaveClick(e) {
var xhttp = new XMLHttpRequest();
xhttp.open("POST", "Your posturl", true);
xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhttp.send("savedata="+localStorage.getItem(RENDER_OPTIONS.documentId + '/annotations'));
}
document.querySelector('.savebutton').addEventListener('click', handleSaveClick);
})();

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant