Getting Started
설치 단계와 이 플러그인의 전체 마크다운 가이드를 포함한 설정 지시를 복사하세요.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-pdf-generator`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/pdf-generator/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
Capgo의 AI-Assisted Setup을 사용하여 플러그인을 설치할 수 있습니다. AI 도구에 Capgo 스킬을 추가하려면 다음 명령어를 사용하세요.
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins다음과 같은 프롬프트를 사용하세요.
Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-pdf-generator` plugin in my project.Copy to clipboard
bun add @capgo/capacitor-pdf-generatorbunx cap syncCopy to clipboard
Importimport { PdfGenerator } from '@capgo/capacitor-pdf-generator';API Overview
API 개요"fromURL"라는 제목의 섹션
import { PdfGenerator } from '@capgo/capacitor-pdf-generator';
await PdfGenerator.fromURL({} as PdfGeneratorFromUrlOptions);fromData
__CAPGO_KEEP_0____CAPGO_KEEP_1__
import { PdfGenerator } from '@capgo/capacitor-pdf-generator';
await PdfGenerator.fromData({} as PdfGeneratorFromDataOptions);__CAPGO_KEEP_3__
__CAPGO_KEEP_4__PdfGeneratorFromUrlOptions
__CAPGO_KEEP_5__export interface PdfGeneratorFromUrlOptions extends PdfGeneratorCommonOptions { url: string;}PdfGeneratorResult
__CAPGO_KEEP_7__export type PdfGeneratorResult = | { type: 'base64'; base64: string; } | { type: 'share'; completed: boolean; };PdfGeneratorFromDataOptions
__CAPGO_KEEP_9__export interface PdfGeneratorFromDataOptions extends PdfGeneratorCommonOptions { /** * HTML document to render. */ data: string; /** * Base URL to use when resolving relative resources inside the HTML string. * When omitted, `about:blank` is used. */ baseUrl?: string;}__CAPGO_KEEP_11__
진실의 근원이 페이지는 플러그인의 src/definitions.ts. upstream의 API이 변경되었을 때 다시 동기화를 실행하세요.
Getting Started에서 계속
Getting Started에서 계속이러한 기능을 사용하고 계신가요? Getting Started 저장소 및 파일 처리를 계획하고 싶다면 native capability을 사용하기 위해 @capgo/capacitor-pdf-generator native capability을 사용하기 위해 @capgo/capacitor-pdf-generator implementation detail을 사용하기 위해 @capgo/capacitor-data-storage-sqlite implementation detail을 사용하기 위해 @capgo/capacitor-data-storage-sqlite Using @capgo/capacitor-data-storage-sqlite for the native capability in Using @capgo/capacitor-data-storage-sqlite @capgo/capacitor-file for the implementation detail in @capgo/capacitor-file, and Using @capgo/capacitor-file for the native capability in Using @capgo/capacitor-file.