HRESULT EndDoc () |
The EndDoc method finalizes all processes after BeginDoc and flushes data to a PDF file. When used with GenerateInMemoryFile, the method generates an in-memory byte buffer for the PDF document.
Equivalent in new interface: IPDFDocument4::SaveToFile.
{ PDF object is supposed to be created } PDF.FileName := 'test.pdf'; PDF.Resolution := 96; PDF.AutoLaunch := false; { set other options } PDF.BeginDoc; { document creation started } { something else here... } PDF.EndDoc; { document creation ended, document is saved to disk }
// PDF object is supposed to be created PDF->FileName = "test.pdf"; PDF->Resolution = 96; PDF->AutoLaunch = false; // set other options PDF->BeginDoc(); // document creation started // something else here... PDF->EndDoc() // document creation ended, document is saved to disk
// PDF object is supposed to be created PDF.FileName = "test.pdf"; PDF.Resolution = 96; PDF.AutoLaunch = false; // set other options PDF.BeginDoc(); // document creation started // something else here... PDF.EndDoc() // document creation ended, document is saved to disk
' PDF object is supposed to be created PDF.FileName = "test.pdf" PDF.Resolution = 96 PDF.AutoLaunch = False ' set other options PDF.BeginDoc ' document creation started ' something else here... PDF.EndDoc ' document creation ended, document is saved to disk