pdfcpu

module
v0.0.0-...-81731f5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2024 License: Apache-2.0

README

pirogom/pdfcpu

clone from pdfcpu

모두의 PDF 개발에 사용된 PDF 프로세서 입니다.

  • 장점 : 빠름
  • 단점 : PDF 스펙을 제대로 지킨 1.7 버전의 파일이 아닌 경우 매우 높은 확률로 PDF파일을 읽는데 실패합니다. 오류나 PDF 1.7 스펙에 맞지 않는 Annotation이 존재하는 PDF파일들은 다른 무언가로 오류 보정을 한 뒤에 사용해야 합니다.
  • 피로곰이 한짓 : PDF 메타데이터 수정시 UTF-8 사용이 안되고 Chart-set에 따른 문제가 발생하는 부분 수정 .. PIROGOM 주석 참고

pdfcpu: a Go PDF processor

pdfcpu is a PDF processing library written in Go supporting encryption. It provides both an API and a CLI. Supported are all versions up to PDF 1.7 (ISO-32000).

Documentation

  • The main entry point is pdfcpu.io.
  • For CLI examples also go to pdfcpu.io. There you will find explanations of all the commands and their parameters.
  • For API examples of all pdfcpu operations please refer to GoDoc.

Reminder

  • Always make sure your work is based on the latest commit!
  • pdfcpu is still Alpha - bugfixes are committed on the fly and will be mentioned in the next release notes.
  • Follow pdfcpu for news and release announcements.
  • For quick questions or discussions get in touch on the Gopher Slack in the #pdfcpu channel.
Using Go Modules
git clone https://github.com/pirogom/pdfcpu
cd pdfcpu/cmd/pdfcpu
go install
pdfcpu version
Run in a Docker container
docker build -t pdfcpu .
# mount current folder into container to process local files
docker run -it --mount type=bind,source="$(pwd)",target=/app pdfcpu ./pdfcpu validate -mode strict /app/pdfs/a.pdf

License

Apache-2.0

Directories

Path Synopsis
cmd
pdfcpu
Package main provides the command line for interacting with pdfcpu.
Package main provides the command line for interacting with pdfcpu.
internal
corefont/metrics
Package metrics provides font metrics for the PDF standard fonts.
Package metrics provides font metrics for the PDF standard fonts.
pkg
api
Package api lets you integrate pdfcpu's operations into your Go backend.
Package api lets you integrate pdfcpu's operations into your Go backend.
cli
Package cli provides pdfcpu command line processing.
Package cli provides pdfcpu command line processing.
filter
Package filter contains PDF filter implementations.
Package filter contains PDF filter implementations.
font
Package font provides support for TrueType fonts.
Package font provides support for TrueType fonts.
log
Package log provides a logging abstraction.
Package log provides a logging abstraction.
pdfcpu
Package pdfcpu is a PDF processing library written in Go supporting encryption.
Package pdfcpu is a PDF processing library written in Go supporting encryption.
pdfcpu/validate
Package validate implements validation against PDF 32000-1:2008.
Package validate implements validation against PDF 32000-1:2008.
types
Package types provides pdfcpu's base types.
Package types provides pdfcpu's base types.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL