pdfcpu version 0.1.9
Version: 0.1.9
Redesigned extraction API with focus on returning the extracted data rather than writing it somewhere.
It is up to the API consumer how to process the extracted data.
func ImageData(ctx *types.PDFContext, objNr int) (*types.ImageObject, error)
func FontData(ctx *types.PDFContext, objNr int) (*types.FontObject, error)
func ContentData(ctx *types.PDFContext, objNr int) (data []byte, err error)
This takes care of #7