This method opens an existing PDF document, reads and parses its contents.
HRESULT Open ( BSTR fileName, BSTR password ) |
This method clears all internal data before opening a document. If you want to save a previously created document, call SaveToFile or GetBuffer first.
When the document is opened, the current page will be the last page of
the existing PDF document.
When the document is opened, all of its properties (Author, Producer, Creator, Title, Subject and Keywords) are saved. You can change them later as needed.
{ PDF object is supposed to be created } PDF.Open('one.pdf', ''); PDF.NewPage; font := PDF.AddFont('Arial', false, false, false, false, fcDefault); PDF.UseFont(font, 10); PDF.ShowTextAt(10, 10, 'This is a new page.'); PDF.SaveToFile('test.pdf', true);
// PDF object is supposed to be created PDF->Open("one.pdf", ""); PDF->NewPage(); long font = PDF->AddFont("Arial", false, false, false, false, fcDefault); PDF->UseFont(font, 10) PDF->ShowTextAt(10, 10, "This is a new page."); PDF->SaveToFile("test.pdf", true);
// PDF object is supposed to be created PDF.Open("one.pdf", ""); PDF.NewPage(); long font = PDF.AddFont("Arial", false, false, false, false, FontCharset.fcDefault); PDF.UseFont(font, 10) PDF.ShowTextAt(10, 10, "This is a new page."); PDF.SaveToFile("test.pdf", true);
' PDF object is supposed to be created PDF.Open "one.pdf", "" PDF.NewPage font = PDF.AddFont("Arial", False, False, False, False, 1) 'fcDefault PDF.UseFont font, 10 PDF.ShowTextAt 10, 10, "This is a new page." PDF.SaveToFile "test.pdf", true Set PDF = nothing