エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
ここにツイート内容が記載されます https://b.hatena.ne.jp/URLはspanで囲んでください
Twitterで共有ONにすると、次回以降このダイアログを飛ばしてTwitterに遷移します
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
<template> <div> <button @click="generatePdf">PDFを生成</button> </div> </template> <script setup... <template> <div> <button @click="generatePdf">PDFを生成</button> </div> </template> <script setup> import { PDFDocument, StandardFonts, rgb } from 'pdf-lib'; const generatePdf = async () => { // 新規PDFドキュメントを作成 const pdfDoc = await PDFDocument.create(); // ページ追加 (幅600px, 高さ400px) const page = pdfDoc.addPage([600, 400]); // フォントを埋め込み const timesRomanFont = await pdfDoc.embedFont(StandardFonts.TimesRoma