2018-09-29 17:22:53 +03:00
|
|
|
/*
|
|
|
|
* 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 (
|
2019-05-16 23:44:51 +03:00
|
|
|
"github.com/unidoc/unipdf/v3/core"
|
2018-09-29 17:22:53 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
// 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)
|
|
|
|
}
|