RenderDocumentToFile

Processamento e impressão

Descrição

Compõe determinadas páginas do documento selecionado num ficheiro de imagem no disco

Por predefinição, a composição utiliza o sistema GDI+, disponível por predefinição no Windows XP e versões posteriores. A opção 10, saída TIFF (G4), só está disponível no Windows Vista, Windows Server 2008 e versões posteriores

Também é possível compor através do Cairo; utilize as funções SetCairoFileName e SelectRenderer

Sintaxe

Delphi

Function TPDFlib.RenderDocumentToFile(DPI: Double; StartPage, EndPage, Options: Integer; Const FileName: WideString): Integer;

ActiveX

Function PDFlib::RenderDocumentToFile(DPI As Double, StartPage As Long, EndPage As Long, Options As Long, FileName As String) As Long

DLL

int DLRenderDocumentToFile(int InstanceID, double DPI, int StartPage, int EndPage, int Options, const wchar_t * FileName);

Parâmetros

DPIOs DPI a utilizar na composição. Um valor de 72 produz o mesmo resultado que o Acrobat com o nível de ampliação a 100%
StartPageA primeira página a imprimir
EndPageA última página a imprimir
Options0 = Saída BMP 1 = Saída JPEG 2 = Saída WMF 3 = Saída EMF 4 = Saída EPS 5 = Saída PNG 6 = Saída GIF 7 = Saída TIFF 8 = Saída EMF+ 9 = Saída HTML5 10 = Saída G4 TIFF The path and filename to use for the file. Each page will be stored in a separate file. If this parameter contains "%p" this will be replaced by the page number, otherwise the page number will be appended to the end of the filename before the extension. For example, if FileName is "output.jpg" and page 10 is rendered the image will be stored in a file called "output10.jpg". If FileName is "page%poutput.bmp" and page 5 is rendered the image will be stored in a file called "page5output.bmp".
FileName

Valores devolvidos

0As páginas não foram compostas com êxito. Isto costuma dever-se ao facto de os parâmetros StartPage ou EndPage estarem fora do intervalo
1As páginas foram compostas com êxito