PdfCanvas.MoveInlineImagesToResources Method (Predicate(PdfImage))

Moves some of the inline images to resources.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public void MoveInlineImagesToResources(
	Predicate<PdfImage> shouldMove
)
VB
Public Sub MoveInlineImagesToResources ( 
	shouldMove As Predicate(Of PdfImage)
)

Parameters

shouldMove
Type: System.Predicate<PdfImage>
The delegate that defines the conditions of inline images that should be moved to resources.

Remarks

This method replaces inline images that match the conditions of the shouldMove delegate with regular ones. This does not affect visual representation of the canvas.

Moving inline images to resources can increase file size because regular images do not use abbreviated image property names.

You might want to move inline images to resources if you are going to scale, resize, recompress the inline images or replace their contents.

Moving inline images to resources can decrease length of the collection of the owning page images. This is because the library de-duplicates images when moving them to resources.

See Also