Developer Tools
|
Office Productivity Applications
|
Platform-Agnostic APIs
|
Home | Online Demos | Downloads | Buy Now | Support | About Us | News | Working Together | Contact Us
eDocEngine VCL provides document creation components for several formats. We call these components document creation engines. The document creation engines also provide a GDI canvas to draw page content on to. So everything that can be drawn to a printer or screen canvas can be drawn on the engine’s canvas to create a PDF, HTML, RTF or other format of the contents on each page canvas. Since it’s a full GDI canvas, we can use GDI shape drawing functions for drawing shapes such as Arcs, Rectangles, Chords, Pies, etc.
Using the GDI Arc function may require some additional help. In this article , we will see how to draw an arc using the GDI Arc function, first, on a screen canvas and then make an identical call on the PDF engine’s canvas to produce a PDF.
I would like to quote below the clear explanation about drawing an Arc on a GDI canvas given by Jo, a Delphi developer in Bristol, England .
Below is the pictorial representation of the call Canvas.Arc(0,0,200,100,100,0,0,50)
Below code draws Arc on the form canvas:
procedure TForm17.Button1Click(Sender: TObject); begin // Draw arc on Form canvas Canvas.Arc(0,0,200,100,100,0,0,50); end;
This is the output on Form Canvas:
Let us draw the Arc on eDocEngine's PDF Engine
Here is the code snippet:
procedure TForm1.Button2Click(Sender: TObject); var gtPDFEngine1: TgtPDFEngine; begin gtPDFEngine1 := TgtPDFEngine.Create(nil); with gtPDFEngine1 do begin // Set file name FileName := 'Arc.pdf'; // Set Measurement units to points MeasurementUnit := mupoints; // Create PDF BeginDoc; // Draw Arc Arc(0, 0, 200, 100, 100, 0, 0, 50); // Save PDF EndDoc; end; end;
Here is the output PDF
---o0O0o---
Our .NET Developer Tools | |
---|---|
Gnostice Document Studio .NETMulti-format document-processing component suite for .NET developers. |
PDFOne .NETA .NET PDF component suite to create, edit, view, print, reorganize, encrypt, annotate, and bookmark PDF documents in .NET applications. |
Our Delphi/C++Builder developer tools | |
---|---|
Gnostice Document Studio DelphiMulti-format document-processing component suite for Delphi/C++Builder developers, covering both VCL and FireMonkey platforms. |
eDocEngine VCLA Delphi/C++Builder component suite for creating documents in over 20 formats and also export reports from popular Delphi reporting tools. |
PDFtoolkit VCLA Delphi/C++Builder component suite to edit, enhance, view, print, merge, split, encrypt, annotate, and bookmark PDF documents. |
Our Java developer tools | |
---|---|
Gnostice Document Studio JavaMulti-format document-processing component suite for Java developers. |
PDFOne (for Java)A Java PDF component suite to create, edit, view, print, reorganize, encrypt, annotate, bookmark PDF documents in Java applications. |
Our Platform-Agnostic Cloud and On-Premises APIs | |
---|---|
StarDocsCloud-hosted and On-Premises REST-based document-processing and document-viewing APIs |
Privacy | Legal | Feedback | Newsletter | Blog | Resellers | © 2002-2024 Gnostice Information Technologies Private Limited. All rights reserved. |