
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
hypnotes-pdf
Advanced tools
This FormCreate component is designed for creating forms on top of a given PDF document. Users can add form fields, input fields, and signatures to the PDF document. The component supports zoom in/out, next/previous page navigation, and saving the document with added fields.
pdfUrlpdfUrl: String (required) - The URL of the PDF document to be renderedonSaveDocument: Function (required) - Callback function to be called when the "Save" button is clicked, receiving the form fields and input fields as argumentspdfjs-dist: A library to parse and render PDF documentsreact-signature-canvas: A library to create signature input fieldsusePdfRenderer, useWindowSizeimport FormCreate from "./FormCreate";
const App = () => {
const pdfUrl = "/path/to/your/pdf/document.pdf";
const handleSaveDocument = (formFields, inputFields) => {
// Save the document with added fields
// ...
};
return (
<div>
<FormCreate pdfUrl={pdfUrl} onSaveDocument={handleSaveDocument} />
</div>
);
};
export default App;
The FormFill component allows users to fill out forms on a given PDF document. It supports text, checkbox, and signature input fields, and allows users to navigate through the PDF document, zoom in and out, and save the filled document.
pdfUrlpdfUrl: String (required) - The URL of the PDF document to be renderedformFields: Array (required) - An array of form fields to be rendered on the PDF documentonSaveDocument: Function (required) - Callback function to be called when the "Save" button is clicked, receiving the form fields and input fields as argumentspdfjs-dist: A library to parse and render PDF documentsreact-signature-canvas: A library to create signature input fieldsusePdfRenderer, useWindowSizeimport React from "react";
import FormFill from "./FormFill";
const App = () => {
const pdfUrl = "/path/to/your/pdf/document.pdf";
const formFields = [/* ... */];
const handleSaveDocument = (formFields, inputFields) => {
// Save the document with added fields
// ...
};
return (
<div>
<FormFill pdfUrl={pdfUrl} formFields={formFields} onSaveDocument={handleSaveDocument} />
</div>
);
};
export default App;
FAQs
1. [Form Create](#form-create) 2. [Form Fill](#form-fill)
The npm package hypnotes-pdf receives a total of 16 weekly downloads. As such, hypnotes-pdf popularity was classified as not popular.
We found that hypnotes-pdf demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.