// Import from 'react-native-pdf-lib' import PDFLib, { PDFDocument, PDFPage } from 'react-native-pdf-lib'; // Create a PDF page with text and rectangles const page1 = PDFPage .create() .setMediaBox(200, 200) .drawText('You can add text and rectangles to the PDF!', { x: 5...
path.then(path=>{console.log('PDF created at: '+path);// Do stuff with your shiny new PDF!}); Modify an Existing PDF Document // Import from 'react-native-pdf-lib'importPDFLib,{PDFDocument,PDFPage}from'react-native-pdf-lib';// Modify first page in documentconstpage1=PDFPage.modify...
Files were exported fromhttps://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-pdf-lib. declareletPDFLib:{getDocumentsDirectory():string;};exportdefaultPDFLib;exportclassPDFDocument{staticcreate(path:string):PDFDocument;addPages(pages:PDFPage[]):PDFDocument;/* Saves the docum...
Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {{ message }} Hopding / react-native-pdf-lib Public Notifications You must be signed in to change notification settings Fork 76 Star 189 ...