RenderPagesToPrintFileA

Rendering, printing, file output

คำอธิบาย

ตัวแปร ANSI ของ RenderPagesToPrintFileรับพารามิเตอร์สตริงเป็นข้อความ ANSI นอกจากนั้นทำงานเหมือนจุดเรียกแบบ wide-string ทุกอย่าง

ไวยากรณ์

Delphi

Function TPDFlib.RenderPagesToPrintFile(DPI: Double; Const PageRanges: WideString; PrintFormat, Options: Integer; Const FileName: WideString): Integer;

ActiveX

Function PDFlib::RenderPagesToPrintFile(DPI As Double, PageRanges As String, PrintFormat As Long, Options As Long, FileName As String) As Long

DLL

int DLRenderPagesToPrintFile(int InstanceID, double DPI, const wchar_t* PageRanges, int PrintFormat, int Options, const wchar_t* FileName);
int DLRenderPagesToPrintFileA(int InstanceID, double DPI, const char* PageRanges, int PrintFormat, int Options, const char* FileName);

ค่าที่ส่งคืน

คืนค่า 1 เมื่อสำเร็จ และ 0 เมื่อล้มเหลว

หมายเหตุ

การเรียกที่ล้มเหลวจะลบไฟล์เอาต์พุตบางส่วนของตัวเองทิ้ง, จุดเรียก ANSI ของ DLL ถอดรหัสช่วงหน้าและชื่อไฟล์เป็น UTF-8

ดูเพิ่มเติม

RenderPagesToPrintStream, RenderPagesToPrintData, RenderPagesToPrintBuffer