DynaPDF Manual - Page 749

Previous Page 748   Index   Next Page 750

Function Reference
Page 749 of 787
pdf.CreateNewPDFA(Format('c:/SplitOut/split%.4d.pdf', [i]));
pdf.Append;
pdf.ImportPageEx(i, 1.0, 1.0); // Import a page
pdf.EndPage;
pdf.CloseFile;
end;
except
on E: Exception do MessageDlg(E.Message, mtError, [mbOK], 0);
end;
if pdf <> nil then pdf.Free;
end;
SetUseImageInterpolation
Syntax:
LBOOL pdfSetUseImageInterpolation(
const PPDF* IPDF, // Instance pointer
UI32 Handle,
// Image handle
LBOOL Value)
// Value
The function enables or disables image interpolation explictely for a given image. If nothing was
specified (this is the default), a viewer application can only use a heuristic to determine whether
image interpolation should be enabled or not. The result is then of course application specific.
The parameter Handle must be a valid image handle that was returned by a DynaPDF function like
InsertImage(), InsertImageEx(), or InsertImageFromBuffer(), for example.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetUseImageInterpolationEx
Syntax:
LBOOL pdfSetUseImageInterpolationEx(
PIMG* Image, // Image pointer
LBOOL Value) // Value
The function enables or disables image interpolation explictely for a given image exactly like
SetUseImageInterpolation() but accepts an image pointer as input. The pointer of an image object is
provided in the TInsertImage callback function of ParseContent().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: SetUseExactPwd, SetUseGlobalImpFiles

Next topic: SetUserUnit, SetUseStdFonts

Start Chat