mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-07-18 23:09:49 +02:00
Add proper TrueType font support (Issue #2)
Still need to implement proper Unicode support (currently only writes WinAnsi font descriptor and handles UTF-8 for 0-255...)
This commit is contained in:
26
pdfio-file.c
26
pdfio-file.c
@ -273,6 +273,32 @@ pdfioFileCreate(
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// 'pdfioFileCreateArrayObj()' - Create a new object in a PDF file containing an array.
|
||||
//
|
||||
// This function creates a new object with an array value in a PDF file.
|
||||
// You must call @link pdfioObjClose@ to write the object to the file.
|
||||
//
|
||||
|
||||
pdfio_obj_t * // O - New object
|
||||
pdfioFileCreateArrayObj(
|
||||
pdfio_file_t *pdf, // I - PDF file
|
||||
pdfio_array_t *array) // I - Object array
|
||||
{
|
||||
_pdfio_value_t value; // Object value
|
||||
|
||||
|
||||
// Range check input...
|
||||
if (!pdf || !array)
|
||||
return (NULL);
|
||||
|
||||
value.type = PDFIO_VALTYPE_ARRAY;
|
||||
value.value.array = array;
|
||||
|
||||
return (_pdfioFileCreateObj(pdf, array->pdf, &value));
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// 'pdfioFileCreateObj()' - Create a new object in a PDF file.
|
||||
//
|
||||
|
Reference in New Issue
Block a user