Loading...
Loading...
Compare original and translation side by side
@syncfusion/ej2-pdfPdfDocumentPdfPagePdfGraphicsPdfFontPdfBitmapPdfBrush@syncfusion/ej2-pdfPdfDocumentPdfPagePdfGraphicsPdfFontPdfBitmapPdfBrush@syncfusion/ej2-pdf@syncfusion/ej2-pdfPdfDocumentPdfDocumentdrawString()PdfBitmapdrawString()PdfBitmap@syncfusion/ej2-pdf-data-extract@syncfusion/ej2-pdf-data-extractimport { PdfDocument, PdfPage, PdfGraphics, PdfFont, PdfFontFamily, PdfFontStyle, PdfBrush } from '@syncfusion/ej2-pdf';
// Create a new PDF document
let document: PdfDocument = new PdfDocument();
// Add a page
let page: PdfPage = document.addPage();
// Get graphics from the page
let graphics: PdfGraphics = page.graphics;
// Set font
let font: PdfFont = document.embedFont(PdfFontFamily.helvetica, 20, PdfFontStyle.regular);
// Create a brush
let brush = new PdfBrush({r: 0, g: 0, b: 0});
// Draw text
graphics.drawString('Hello World!', font, {x: 20, y: 20, width: 200, height: 50}, brush);
// Save the document
document.save('output.pdf');
// Clean up
document.destroy();import { PdfDocument, PdfPage, PdfGraphics, PdfFont, PdfFontFamily, PdfFontStyle, PdfBrush } from '@syncfusion/ej2-pdf';
// Create a new PDF document
let document: PdfDocument = new PdfDocument();
// Add a page
let page: PdfPage = document.addPage();
// Get graphics from the page
let graphics: PdfGraphics = page.graphics;
// Set font
let font: PdfFont = document.embedFont(PdfFontFamily.helvetica, 20, PdfFontStyle.regular);
// Create a brush
let brush = new PdfBrush({r: 0, g: 0, b: 0});
// Draw text
graphics.drawString('Hello World!', font, {x: 20, y: 20, width: 200, height: 50}, brush);
// Save the document
document.save('output.pdf');
// Clean up
document.destroy();@syncfusion/ej2-pdf@syncfusion/ej2-pdfaddPage(settings?)getPage(index)save(filename)destroy()embedFont()addPage(settings?)getPage(index)save(filename)destroy()embedFont()drawString(text, font, bounds, brush)drawImage(image, bounds)drawRectangle(pen, bounds)save()restore(state)drawString(text, font, bounds, brush)drawImage(image, bounds)drawRectangle(pen, bounds)save()restore(state)graphicssizerotationgraphicssizerotationdocument.embedFont()document.destroy()@syncfusion/ej2-pdf-data-extractdocument.embedFont()document.destroy()@syncfusion/ej2-pdf-data-extract@syncfusion/ej2-pdf@syncfusion/ej2-pdf-data-extract@syncfusion/ej2-compression@syncfusion/ej2-base@syncfusion/ej2-pdf@syncfusion/ej2-pdf-data-extract@syncfusion/ej2-compression@syncfusion/ej2-base