mirror of
https://github.com/unidoc/unipdf.git
synced 2025-04-29 13:48:54 +08:00
19 lines
551 B
Go
19 lines
551 B
Go
![]() |
/*
|
||
|
* This file is subject to the terms and conditions defined in
|
||
|
* file 'LICENSE.md', which is part of this source code package.
|
||
|
*/
|
||
|
|
||
|
package model
|
||
|
|
||
|
import (
|
||
|
"github.com/unidoc/unidoc/pdf/core"
|
||
|
)
|
||
|
|
||
|
// Optimizer is the interface that performs optimization of PDF object structure for output writing.
|
||
|
//
|
||
|
// Optimize receives a slice of input `objects`, performs optimization, including removing, replacing objects and
|
||
|
// output the optimized slice of objects.
|
||
|
type Optimizer interface {
|
||
|
Optimize(objects []core.PdfObject) ([]core.PdfObject, error)
|
||
|
}
|