DrawSVGFromFile

גרפיקה וקטורית, SVG, קלט קובץ

תיאור

Loads an SVG file and draws its supported geometry inside a rectangular page area as native PDF paths

תחביר

Delphi

Function TPDFlib.DrawSVGFromFile(Left, Top, Width, Height: Double; Const FileName, AltText: WideString): Integer;

ActiveX

Function PDFlib::DrawSVGFromFile(Left As Double, Top As Double, Width As Double, Height As Double, FileName As String, AltText As String) As Long

DLL

int DLDrawSVGFromFile(int InstanceID, double Left, double Top, double Width, double Height, const wchar_t * FileName, const wchar_t * AltText);

פרמטרים

LeftHorizontal position of the destination rectangle
TopTop edge of the destination rectangle
WidthDestination width in the current measurement units
Heightגובה היעד ביחידות המדידה הנוכחיות
FileNamePath to a UTF-8, UTF-16LE, or UTF-16BE SVG file no larger than 16 MiB
AltTextAccessible description used when automatic tagging opens a Figure structure element

ערכי החזרה

מחזיר 1 כאשר מצוירת צורה וקטורית נתמכת אחת לפחות, או 0 כאשר לא ניתן לקרוא את הקובץ או שמקור ה-SVG שלו אינו תקף

הערות

תוכן הקובץ נכנס לאותו מנתח תחום ולאותו מטמון מקור-אחרון בהם משתמש DrawSVGלא נפתח אף משאב חיצוני שה-SVG מפנה אליו

The DLL

ה-variant של DLDrawSVGFromFileA מקבל את שם הקובץ ואת הטקסט החלופי לפי מצב ה-ANSI שהוגדר