
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.js. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Inter, a custom Google Font.
To learn more about Next.js, take a look at the following resources:
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
Create Nextjs PDF with ease
SAMPLE
"use client"
import React from 'react'; import jsPDF from 'jspdf'; import 'jspdf-autotable'; import Image from 'next/image'; import styles from './page.module.css';
export default function Home() { function demo() { var obj = new jsPDF('landscape');
// Add title heading
obj.setFontSize(18);
obj.text('Sample Table Report', 20, 20);
// Create the table
obj.setFontSize(12);
obj.autoTable({
startX: 30,
startY: 40, // Adjust startY to make space for the title
head: [['Name', 'City', 'Phone No.']],
body: [
['Bambo', 'World', '07066279211'],
['Rachel', 'Los Angeles', '7845521'],
['Harvey', 'Chicago', '9865371'],
],
});
obj.save('example.pdf');
}
return (
<div>
<div className={styles.buttonContainer}>
<button className={styles.customButton} onClick={demo}>
Download PDF
</button>
</div>
</div>
);
}
YOU CAN STYLE YOUR PDF AS SEEN BELOW
obj.autoTable({ startX: 20, startY: 30, head: [['Name', 'City', 'Phone No.']],
body: [ ['Donna', 'New York', '8456210'], ['Rachel', 'Los Angeles', '7845521'], ['Harvey', 'Chicago', '9865371'], ], theme: 'striped', // Apply a striped theme headStyles: { fillColor: [100, 100, 255], // Set header cell background color textColor: 255, // Set header text color }, bodyStyles: { textColor: [0, 0, 0], // Set body text color }, columnStyles: { 0: { fontStyle: 'bold' }, // Apply bold style to the first column }, margin: { top: 60 }, didDrawPage: function (data) { obj.text('Generated by jsPDF AutoTable', data.settings.margin.left, 10); }, });
FAQs
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
We found that nextjs-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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.