mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 14:18:04 +08:00
1 parent
eb20f66ffb
commit
075797402d
41 files changed
+633
-125
No files matched your search
+1
-1
@@ -136,7 +136,7 @@ func (p *pdfImporter) image(mark pdfgo.ImageMark) error {
|
||||
}
|
||||
if cacheable {
|
||||
if p.imageContents == nil {
|
||||
p.imageContents = &renderCache[pdfImageContentKey, pdfImageContent]{limit: 8 << 20}
|
||||
p.imageContents = resourceCache[pdfImageContentKey, pdfImageContent](p.resources, 8<<20)
|
||||
}
|
||||
if cached, found := p.imageContents.get(contentKey); found && cached.matches(source) {
|
||||
id = cached.id
|
||||
|
||||
Reference in new issue
Block a user