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.
설치
설치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.만약 Manual Setup을 선호한다면, 플러그인을 설치하기 위해 다음 명령어를 실행하고 아래에 플랫폼별 지침을 따르세요:
bun add @capgo/capacitor-pdf-generatorbunx cap syncimport { PdfGenerator } from '@capgo/capacitor-pdf-generator';API 개요
Section titled “API 개요”fromURL
Section titled “fromURL”제공된 URL에서 PDF를 생성합니다.
import { PdfGenerator } from '@capgo/capacitor-pdf-generator';
await PdfGenerator.fromURL({} as PdfGeneratorFromUrlOptions);fromData
Section titled “fromData”raw HTML 문자열에서 PDF를 생성합니다.
import { PdfGenerator } from '@capgo/capacitor-pdf-generator';
await PdfGenerator.fromData({} as PdfGeneratorFromDataOptions);PdfGeneratorFromUrlOptions
PdfGeneratorFromUrlOptions 섹션export interface PdfGeneratorFromUrlOptions extends PdfGeneratorCommonOptions { url: string;}PdfGeneratorResult
PdfGeneratorResult 섹션export type PdfGeneratorResult = | { type: 'base64'; base64: string; } | { type: 'share'; completed: boolean; };PdfGeneratorFromDataOptions
PdfGeneratorFromDataOptions 섹션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;}진실의 근원
진실의 근원 섹션이 페이지는 플러그인의 src/definitions.ts업스트림에서 pubic API이 변경되면 다시 싱크를 실행하세요.
Getting Started에서 계속하세요
Keep going from Getting Started 섹션If you are using __CAPGO_KEEP_0__ __CAPGO_KEEP_1__ Getting Started 데이터 저장 및 파일 처리를 계획하고 연결하려면 capgo capacitor-pdf-generator를 사용하여 capgo capacitor-pdf-generator의 원시 기능을 위해 capgo capacitor-data-storage-sqlite를 사용하여 capgo capacitor-data-storage-sqlite의 구현 세부 정보를 위해 capgo capacitor-data-storage-sqlite를 사용하여 capgo capacitor-file을 사용하여 capgo capacitor-file의 구현 세부 정보를 위해 capgo capacitor-file capgo capacitor capgo/capacitor-파일을 위한 원시 기능을 사용합니다.