HRESULT PDFPAGE_TextShow ( BSTR text ) |
This method draws an ASCII text string starting from the current text position and using the current font. Then current text position moves to the end of the drawn text.
Equivalent in new interface: IPDFDocument4::ShowText.
// PDF object is supposed to be created PDF.BeginDoc; PDF.PDFPAGE_SetActiveFont('Verdana', false, false, false, false, 12.0, 0); PDF.PDFPAGE_SetTextPosition(100, 100); PDF.PDFPAGE_TextShow('text1'); PDF.PDFPAGE_SetTextPosition(120, 120); PDF.PDFPAGE_TextShow('text2'); PDF.EndDoc;
// PDF object is supposed to be created PDF->BeginDoc(); PDF->PDFPAGE_SetActiveFont("Verdana", FALSE, FALSE, FALSE, FALSE, 12.0, 0); PDF->PDFPAGE_SetTextPosition(100, 100); PDF->PDFPAGE_TextShow("text1"); PDF->PDFPAGE_SetTextPosition(120, 120); PDF->PDFPAGE_TextShow("text2"); PDF->EndDoc();
// PDF object is supposed to be created PDF.BeginDoc(); PDF.PDFPAGE_SetActiveFont("Verdana", false, false, false, false, 12.0, 0); PDF.PDFPAGE_SetTextPosition(100, 100); PDF.PDFPAGE_TextShow("text1"); PDF.PDFPAGE_SetTextPosition(120, 120); PDF.PDFPAGE_TextShow("text2"); PDF.EndDoc();
' PDF object is supposed to be created PDF.BeginDoc PDF.PDFPAGE_SetActiveFont "Verdana", False, False, False, False, 12.0, 0 PDF.PDFPAGE_SetTextPosition 100, 100 PDF.PDFPAGE_TextShow "text1" PDF.PDFPAGE_SetTextPosition 120, 120 PDF.PDFPAGE_TextShow "text2" PDF.EndDoc