PDF Toolbox
Loading...
Searching...
No Matches
PdfTools_Toolbox_PtxPdfContent.h
Go to the documentation of this file.
1/******************************************************************************
2 *
3 * File: PdfTools_Toolbox_PtxPdfContent.h
4 *
5 * Description: Sub Header file for Toolbox SDK
6 *
7 * Author: PDF Tools AG
8 *
9 * Copyright: Copyright (C) 2024 - 2026 PDF Tools AG, Switzerland
10 * All rights reserved.
11 *
12 * Notice: By downloading and using this artifact, you accept PDF Tools AG's
13 * [license agreement](https://www.pdf-tools.com/license-agreement/),
14 * [privacy policy](https://www.pdf-tools.com/privacy-policy/),
15 * and allow PDF Tools AG to track your usage data.
16 *
17 *****************************************************************************/
18
19#ifndef PDFTOOLS_TOOLBOX_PTXPDFCONTENT_H__
20#define PDFTOOLS_TOOLBOX_PTXPDFCONTENT_H__
21
22#ifndef PDFTOOLS_TOOLBOX_CALL
23#if defined(WIN32)
24#define PDFTOOLS_TOOLBOX_CALL __stdcall
25#else
26#define PDFTOOLS_TOOLBOX_CALL
27#endif
28#endif
29
32
33#ifdef __cplusplus
34extern "C"
35{
36#endif
37
38#ifdef _UNICODE
39#define PtxPdfContent_Font_CreateFromSystem PtxPdfContent_Font_CreateFromSystemW
40#define PtxPdfContent_Font_GetGlyphName PtxPdfContent_Font_GetGlyphNameW
41
42#define PtxPdfContent_Font_GetBaseFont PtxPdfContent_Font_GetBaseFontW
43
44#define PtxPdfContent_Font_GetRawBaseFont PtxPdfContent_Font_GetRawBaseFontW
45
46#define PtxPdfContent_ContentGenerator_TagAs PtxPdfContent_ContentGenerator_TagAsW
47
48#define PtxPdfContent_TextGenerator_GetWidth PtxPdfContent_TextGenerator_GetWidthW
49#define PtxPdfContent_TextGenerator_Show PtxPdfContent_TextGenerator_ShowW
50#define PtxPdfContent_TextGenerator_ShowLine PtxPdfContent_TextGenerator_ShowLineW
51
52#define PtxPdfContent_Glyph_GetText PtxPdfContent_Glyph_GetTextW
53
54#define PtxPdfContent_TextFragment_GetText PtxPdfContent_TextFragment_GetTextW
55
56#define PtxPdfContent_OptionalContentMembership_GetExpression PtxPdfContent_OptionalContentMembership_GetExpressionW
57
58#else
59#define PtxPdfContent_Font_CreateFromSystem PtxPdfContent_Font_CreateFromSystemA
60#define PtxPdfContent_Font_GetGlyphName PtxPdfContent_Font_GetGlyphNameA
61
62#define PtxPdfContent_Font_GetBaseFont PtxPdfContent_Font_GetBaseFontA
63
64#define PtxPdfContent_Font_GetRawBaseFont PtxPdfContent_Font_GetRawBaseFontA
65
66#define PtxPdfContent_ContentGenerator_TagAs PtxPdfContent_ContentGenerator_TagAsA
67
68#define PtxPdfContent_TextGenerator_GetWidth PtxPdfContent_TextGenerator_GetWidthA
69#define PtxPdfContent_TextGenerator_Show PtxPdfContent_TextGenerator_ShowA
70#define PtxPdfContent_TextGenerator_ShowLine PtxPdfContent_TextGenerator_ShowLineA
71
72#define PtxPdfContent_Glyph_GetText PtxPdfContent_Glyph_GetTextA
73
74#define PtxPdfContent_TextFragment_GetText PtxPdfContent_TextFragment_GetTextA
75
76#define PtxPdfContent_OptionalContentMembership_GetExpression PtxPdfContent_OptionalContentMembership_GetExpressionA
77
78#endif
79
80/******************************************************************************
81 * Transparency
82 *****************************************************************************/
98
124 TPtxPdfContent_Transparency* pTransparency, TPtxPdfContent_BlendMode iBlendMode);
157
158/******************************************************************************
159 * Stroke
160 *****************************************************************************/
177
227 TPtxPdfContent_Paint* pPaint);
264 double dLineWidth);
364 double* pBuffer,
365 size_t nBufferSize);
386 const double* pDashArray,
387 size_t nDashArrays);
424 double dDashPhase);
461 double dMiterLimit);
462
463/******************************************************************************
464 * Fill
465 *****************************************************************************/
480
530 TPtxPdfContent_Paint* pPaint);
569
570/******************************************************************************
571 * Image
572 *****************************************************************************/
656 const TPtxPdfContent_ImageType* pImageType);
680 const TPtxGeomReal_Rectangle* pRect);
705
745 TPtxGeomInt_Size* pSize);
789 unsigned char* pBuffer,
790 size_t nBufferSize);
831 const unsigned char* pSamples,
832 size_t nSampless);
870
871/******************************************************************************
872 * ImageMask
873 *****************************************************************************/
949 const TPtxPdfContent_ImageType* pImageType);
973 TPtxPdfContent_ImageMask* pImageMask, const TPtxGeomReal_AffineTransform* pTransform);
974
991 TPtxGeomInt_Size* pSize);
992
993/******************************************************************************
994 * Font
995 *****************************************************************************/
1036 TPtxPdf_Document* pTargetDocument, const TPtxSys_StreamDescriptor* pStreamDesc, BOOL bEmbedded);
1076 TPtxPdf_Document* pTargetDocument, const char* szFamily, const char* szStyle, BOOL bEmbedded);
1116 TPtxPdf_Document* pTargetDocument, const WCHAR* szFamily, const WCHAR* szStyle, BOOL bEmbedded);
1138 int iCharacter);
1167 int iCharacterCode, char* pBuffer,
1168 size_t nBufferSize);
1197 int iCharacterCode,
1198 WCHAR* pBuffer,
1199 size_t nBufferSize);
1200
1226 char* pBuffer, size_t nBufferSize);
1252 WCHAR* pBuffer,
1253 size_t nBufferSize);
1275 TPtxPdfContent_FontWeight* pWeight);
1383 double* pLeading);
1428 char* pBuffer,
1429 size_t nBufferSize);
1457 WCHAR* pBuffer,
1458 size_t nBufferSize);
1480 int* pDescriptorFlags);
1503
1504/******************************************************************************
1505 * Group
1506 *****************************************************************************/
1598 TPtxPdf_Document* pTargetDocument, TPtxPdf_Page* pPage, TPtxPdf_PageCopyOptions* pOptions);
1599
1616 TPtxGeomReal_Size* pSize);
1677 BOOL bIsolated);
1719 BOOL bKnockout);
1720
1721/******************************************************************************
1722 * ColorSpace
1723 *****************************************************************************/
1790
1808
1824/******************************************************************************
1825 * IccBasedColorSpace
1826 *****************************************************************************/
1892 TPtxPdf_Document* pTargetDocument, TPtxPdfContent_IccBasedColorSpace* pColorSpace);
1893
1894/******************************************************************************
1895 * Subpath
1896 *****************************************************************************/
1927 int iIndex,
1928 TPtxPdfContent_PathSegment* pPathSegment);
1929
1944 TPtxGeomReal_Point* pStartPoint);
1960
1961/******************************************************************************
1962 * Path
1963 *****************************************************************************/
1973
1988
1989/******************************************************************************
1990 * PathIterator
1991 *****************************************************************************/
2021
2022/******************************************************************************
2023 * ContentGenerator
2024 *****************************************************************************/
2048
2127 TPtxPdfContent_ContentGenerator* pContentGenerator, const TPtxGeomReal_AffineTransform* pTransform);
2166 TPtxPdfContent_ContentGenerator* pContentGenerator, TPtxPdfStructure_Node* pNode, const char* szLanguage);
2205 TPtxPdfContent_ContentGenerator* pContentGenerator, TPtxPdfStructure_Node* pNode, const WCHAR* szLanguage);
2270 TPtxPdfContent_Image* pImage, const TPtxGeomReal_Rectangle* pTargetRect);
2320 TPtxPdfContent_ContentGenerator* pContentGenerator, TPtxPdfContent_ImageMask* pImageMask,
2321 const TPtxGeomReal_Rectangle* pTargetRect, TPtxPdfContent_Paint* pPaint);
2397 TPtxPdfContent_ContentGenerator* pContentGenerator, TPtxPdfContent_Text* pText);
2459 TPtxPdfContent_ContentGenerator* pContentGenerator, TPtxPdfContent_Text* pText);
2508 TPtxPdfContent_ContentGenerator* pContentGenerator, TPtxPdfContent_Group* pGroup,
2509 const TPtxGeomReal_Rectangle* pTargetRect, TPtxPdfContent_Transparency* pTransparency);
2532 TPtxPdfContent_ContentGenerator* pContentGenerator, TPtxPdfContent_ContentElement* pContentElement);
2533
2546/******************************************************************************
2547 * PathGenerator
2548 *****************************************************************************/
2563
2640 TPtxPdfContent_PathGenerator* pPathGenerator, const TPtxGeomReal_Point* pControlPoint1,
2641 const TPtxGeomReal_Point* pControlPoint2, const TPtxGeomReal_Point* pTarget);
2684 TPtxPdfContent_PathGenerator* pPathGenerator, const TPtxGeomReal_Rectangle* pRectangle);
2705 TPtxPdfContent_PathGenerator* pPathGenerator, const TPtxGeomReal_Point* pCenter, double dRadius);
2724 TPtxPdfContent_PathGenerator* pPathGenerator, const TPtxGeomReal_Rectangle* pRectangle);
2748 const TPtxGeomReal_Rectangle* pRectangle, double dAlpha1, double dAlpha2);
2772 const TPtxGeomReal_Rectangle* pRectangle, double dAlpha1, double dAlpha2);
2773
2786/******************************************************************************
2787 * TextGenerator
2788 *****************************************************************************/
2831 TPtxPdfContent_Text* pText, TPtxPdfContent_Font* pFont, double dFontSize, const TPtxGeomReal_Point* pLocation);
2832
2993
3183 TPtxPdfContent_TextGenerator* pTextGenerator, double dHorizontalScaling);
3238
3251/******************************************************************************
3252 * Paint
3253 *****************************************************************************/
3301 const double* pColor, size_t nColors, TPtxPdfContent_Transparency* pTransparency);
3302
3347 double* pBuffer, size_t nBufferSize);
3370
3371/******************************************************************************
3372 * Glyph
3373 *****************************************************************************/
3397 char* pBuffer, size_t nBufferSize);
3421 WCHAR* pBuffer, size_t nBufferSize);
3451 TPtxGeomReal_Point* pPosition);
3470
3471/******************************************************************************
3472 * TextFragment
3473 *****************************************************************************/
3522
3541 TPtxPdfContent_TextFragment* pTextFragment, TPtxGeomReal_Rectangle* pBoundingBox);
3560 TPtxPdfContent_TextFragment* pTextFragment, TPtxGeomReal_AffineTransform* pTransform);
3585PtxPdfContent_TextFragment_GetTextA(TPtxPdfContent_TextFragment* pTextFragment, char* pBuffer, size_t nBufferSize);
3610PtxPdfContent_TextFragment_GetTextW(TPtxPdfContent_TextFragment* pTextFragment, WCHAR* pBuffer, size_t nBufferSize);
3635 TPtxPdfContent_TextFragment* pTextFragment, unsigned char* pBuffer, size_t nBufferSize);
3819
3820/******************************************************************************
3821 * Text
3822 *****************************************************************************/
3903
3904/******************************************************************************
3905 * OptionalContentMembership
3906 *****************************************************************************/
3924
3979 TPtxPdfContent_OptionalContentMembership* pOptionalContentMembership, char* pBuffer, size_t nBufferSize);
4012 TPtxPdfContent_OptionalContentMembership* pOptionalContentMembership, WCHAR* pBuffer, size_t nBufferSize);
4013
4014/******************************************************************************
4015 * ContentElement
4016 *****************************************************************************/
4053
4072 TPtxPdfContent_ContentElement* pContentElement, TPtxGeomReal_Rectangle* pBoundingBox);
4095 TPtxPdfContent_ContentElement* pContentElement, TPtxGeomReal_AffineTransform* pTransform);
4118 TPtxPdfContent_ContentElement* pContentElement, const TPtxGeomReal_AffineTransform* pTransform);
4137
4153/******************************************************************************
4154 * TextElement
4155 *****************************************************************************/
4174
4175/******************************************************************************
4176 * GroupElement
4177 *****************************************************************************/
4213 TPtxPdfContent_GroupElement* pGroupElement);
4214
4233
4234/******************************************************************************
4235 * PathElement
4236 *****************************************************************************/
4255 TPtxPdfContent_PathElement* pPathElement, TPtxGeomReal_Rectangle* pAlignmentBox);
4314
4315/******************************************************************************
4316 * ImageElement
4317 *****************************************************************************/
4336
4337/******************************************************************************
4338 * ImageMaskElement
4339 *****************************************************************************/
4376
4377/******************************************************************************
4378 * ContentExtractor
4379 *****************************************************************************/
4405
4420
4459
4460/******************************************************************************
4461 * ContentExtractorIterator
4462 *****************************************************************************/
4494
4495#ifdef __cplusplus
4496}
4497#endif
4498
4499#endif /* PDFTOOLS_TOOLBOX_PTXPDFCONTENT_H__ */
#define PDFTOOLS_TOOLBOX_EXPORT
Definition PdfTools_Toolbox_Platform.h:143
unsigned short WCHAR
Definition PdfTools_Toolbox_Platform.h:95
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Fill *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_PathElement_GetFill(TPtxPdfContent_PathElement *pPathElement)
PDFTOOLS_TOOLBOX_EXPORT double PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextGenerator_GetWidthW(TPtxPdfContent_TextGenerator *pTextGenerator, const WCHAR *szText)
Get the width of a text string. The width of a text string as if it would be shown with the current s...
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_LineJoinStyle PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Stroke_GetLineJoinStyle(TPtxPdfContent_Stroke *pStroke)
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_ContentElementType PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentElement_GetType(TPtxPdfContent_ContentElement *pContentElement)
Get actual derived type of base type TPtxPdfContent_ContentElement.
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_TextFragment *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Text_Get(TPtxPdfContent_Text *pText, int iIndex)
Returns the element at the specified position in the given list.
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Path *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Path_New(void)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextFragment_GetBoundingBox(TPtxPdfContent_TextFragment *pTextFragment, TPtxGeomReal_Rectangle *pBoundingBox)
the bounding box This is a rectangle that encompasses all parts of the text fragment.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Group_GetSize(TPtxPdfContent_Group *pGroup, TPtxGeomReal_Size *pSize)
The size of the group.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Font_GetDescriptorFlags(TPtxPdfContent_Font *pFont, int *pDescriptorFlags)
the flags of the font descriptor. The unmodified value of the /Flags entry of the font descriptor,...
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentGenerator_TagAsArtifact(TPtxPdfContent_ContentGenerator *pContentGenerator, TPtxPdfContent_ArtifactType iType)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentExtractor_SetUngrouping(TPtxPdfContent_ContentExtractor *pContentExtractor, TPtxPdfContent_UngroupingSelection iUngrouping)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Image_SetSamples(TPtxPdfContent_Image *pImage, const unsigned char *pSamples, size_t nSampless)
The raw content of the image.
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_InsideRule PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Fill_GetInsideRule(TPtxPdfContent_Fill *pFill)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentGenerator_PaintText(TPtxPdfContent_ContentGenerator *pContentGenerator, TPtxPdfContent_Text *pText)
Paint text.
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Text *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextElement_GetText(TPtxPdfContent_TextElement *pTextElement)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentGenerator_PaintGroup(TPtxPdfContent_ContentGenerator *pContentGenerator, TPtxPdfContent_Group *pGroup, const TPtxGeomReal_Rectangle *pTargetRect, TPtxPdfContent_Transparency *pTransparency)
Paint a group.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextGenerator_SetHorizontalScaling(TPtxPdfContent_TextGenerator *pTextGenerator, double dHorizontalScaling)
the current horizontal scaling.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextGenerator_SetFontSize(TPtxPdfContent_TextGenerator *pTextGenerator, double dFontSize)
the current font size.
PDFTOOLS_TOOLBOX_EXPORT int PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Image_GetBitsPerComponent(TPtxPdfContent_Image *pImage)
the number of bits per component. The number of bits used to represent each color component....
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Paint *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ImageMaskElement_GetPaint(TPtxPdfContent_ImageMaskElement *pImageMaskElement)
PDFTOOLS_TOOLBOX_EXPORT double PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Transparency_GetAlpha(TPtxPdfContent_Transparency *pTransparency)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentGenerator_Save(TPtxPdfContent_ContentGenerator *pContentGenerator)
Save the current graphics state The graphics state is stored on the graphics state stack....
PDFTOOLS_TOOLBOX_EXPORT double PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Font_GetDescent(TPtxPdfContent_Font *pFont)
the descent of the font. The maximum depth below the baseline reached by glyphs in this font....
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_PathGenerator_AddArc(TPtxPdfContent_PathGenerator *pPathGenerator, const TPtxGeomReal_Rectangle *pRectangle, double dAlpha1, double dAlpha2)
Add an elliptical arc to the current path.
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_ContentExtractor *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentExtractor_New(TPtxPdfContent_Content *pContent)
Create a new content extractor.
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Transparency *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Transparency_New(double dAlpha)
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Path *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_PathElement_GetPath(TPtxPdfContent_PathElement *pPathElement)
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_IccBasedColorSpace *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_IccBasedColorSpace_Copy(TPtxPdf_Document *pTargetDocument, TPtxPdfContent_IccBasedColorSpace *pColorSpace)
Copy an ICC-based color space Copy an ICC-based color space object from an input document to the give...
PDFTOOLS_TOOLBOX_EXPORT double PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Image_GetResolution(TPtxPdfContent_Image *pImage, const TPtxGeomReal_AffineTransform *pTransform)
The resolution of an image on the page in DPI (dots per inch). The resolution is the ratio between th...
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Stroke *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Stroke_New(TPtxPdfContent_Paint *pPaint, double dLineWidth)
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_ContentElement *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentExtractorIterator_GetValue(TPtxPdfContent_ContentExtractorIterator *pContentExtractorIterator)
Get the current element or NULLif no elements are left.
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Stroke *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_PathElement_GetStroke(TPtxPdfContent_PathElement *pPathElement)
PDFTOOLS_TOOLBOX_EXPORT double PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ImageMask_GetResolution(TPtxPdfContent_ImageMask *pImageMask, const TPtxGeomReal_AffineTransform *pTransform)
The resolution of an image mask on the page in DPI (dots per inch). The resolution is the ratio betwe...
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentGenerator_TagAsA(TPtxPdfContent_ContentGenerator *pContentGenerator, TPtxPdfStructure_Node *pNode, const char *szLanguage)
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Image_GetSamples(TPtxPdfContent_Image *pImage, unsigned char *pBuffer, size_t nBufferSize)
The raw content of the image.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextGenerator_ShowW(TPtxPdfContent_TextGenerator *pTextGenerator, const WCHAR *szText)
Show a text string. The text is shown using the current settings.
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextFragment_GetTextW(TPtxPdfContent_TextFragment *pTextFragment, WCHAR *pBuffer, size_t nBufferSize)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentGenerator_ClipWithPath(TPtxPdfContent_ContentGenerator *pContentGenerator, TPtxPdfContent_Path *pPath, TPtxPdfContent_InsideRule iInsideRule)
Intersect clip path with path. Update the current clip path by intersecting with the given path.
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Group *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Group_CopyFromPage(TPtxPdf_Document *pTargetDocument, TPtxPdf_Page *pPage, TPtxPdf_PageCopyOptions *pOptions)
Create a group object from a page.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentGenerator_StopTagging(TPtxPdfContent_ContentGenerator *pContentGenerator)
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_ColorSpace *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ColorSpace_CreateProcessColorSpace(TPtxPdf_Document *pTargetDocument, TPtxPdfContent_ProcessColorSpaceType iType)
Get the canonical grayscale, RGB, or CMYK color space. Depending on the PDF/A compliance and the outp...
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_GroupElement *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_GroupElement_CopyWithoutContent(TPtxPdf_Document *pTargetDocument, TPtxPdfContent_GroupElement *pGroupElement)
Copy a group element without copying its content Create a new group element, taking a given group ele...
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Stroke_SetLineWidth(TPtxPdfContent_Stroke *pStroke, double dLineWidth)
PDFTOOLS_TOOLBOX_EXPORT double PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextGenerator_GetWidthA(TPtxPdfContent_TextGenerator *pTextGenerator, const char *szText)
Get the width of a text string. The width of a text string as if it would be shown with the current s...
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Font *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Font_Create(TPtxPdf_Document *pTargetDocument, const TPtxSys_StreamDescriptor *pStreamDesc, BOOL bEmbedded)
Create a new font object from font file data. Supported formats are:
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentElement_GetBoundingBox(TPtxPdfContent_ContentElement *pContentElement, TPtxGeomReal_Rectangle *pBoundingBox)
the bounding box This is a rectangle that encompasses all parts of an element.
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextFragment_GetTextA(TPtxPdfContent_TextFragment *pTextFragment, char *pBuffer, size_t nBufferSize)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentGenerator_ClipWithText(TPtxPdfContent_ContentGenerator *pContentGenerator, TPtxPdfContent_Text *pText)
Intersect clip path with text. Update the current clip path by intersecting with the given text.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_PathGenerator_MoveTo(TPtxPdfContent_PathGenerator *pPathGenerator, const TPtxGeomReal_Point *pTarget)
Move the current position. Begin a new subpath by moving the current point to the specified coordinat...
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentExtractorIterator_MoveNext(TPtxPdfContent_ContentExtractorIterator *pContentExtractorIterator)
Move the iterator to the next element.
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Paint *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Stroke_GetPaint(TPtxPdfContent_Stroke *pStroke)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Image_GetSize(TPtxPdfContent_Image *pImage, TPtxGeomInt_Size *pSize)
The size of the image in samples. Samples are often also called pixels.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentGenerator_TagAsW(TPtxPdfContent_ContentGenerator *pContentGenerator, TPtxPdfStructure_Node *pNode, const WCHAR *szLanguage)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ImageMask_Extract(TPtxPdfContent_ImageMask *pImageMask, const TPtxSys_StreamDescriptor *pStreamDesc, const TPtxPdfContent_ImageType *pImageType)
Extract image mask from PDF.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextGenerator_SetRise(TPtxPdfContent_TextGenerator *pTextGenerator, double dRise)
the current rise of the baseline.
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Font *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Font_CreateFromSystemA(TPtxPdf_Document *pTargetDocument, const char *szFamily, const char *szStyle, BOOL bEmbedded)
Create a new font object from an installed font. The returned font object is not yet used on any page...
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextGenerator_ShowLineW(TPtxPdfContent_TextGenerator *pTextGenerator, const WCHAR *szText)
Show a text string and go to the next line.
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_ContentGenerator *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentGenerator_New(TPtxPdfContent_Content *pContent, BOOL bPrepend)
Create a new content generator for appending or prepending to the content of a group.
PDFTOOLS_TOOLBOX_EXPORT int PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ColorSpace_GetComponentCount(TPtxPdfContent_ColorSpace *pColorSpace)
the number of components in the color space.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentGenerator_PaintImage(TPtxPdfContent_ContentGenerator *pContentGenerator, TPtxPdfContent_Image *pImage, const TPtxGeomReal_Rectangle *pTargetRect)
Paint an image.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_PathGenerator_AddCircle(TPtxPdfContent_PathGenerator *pPathGenerator, const TPtxGeomReal_Point *pCenter, double dRadius)
Append a circle to the current path as a complete subpath.
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_BlendMode PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Transparency_GetBlendMode(TPtxPdfContent_Transparency *pTransparency)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextGenerator_ShowA(TPtxPdfContent_TextGenerator *pTextGenerator, const char *szText)
Show a text string. The text is shown using the current settings.
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Transparency *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Paint_GetTransparency(TPtxPdfContent_Paint *pPaint)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextGenerator_ShowLineA(TPtxPdfContent_TextGenerator *pTextGenerator, const char *szText)
Show a text string and go to the next line.
PDFTOOLS_TOOLBOX_EXPORT double PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextFragment_GetHorizontalScaling(TPtxPdfContent_TextFragment *pTextFragment)
The horizontal scaling factor The horizontal scaling parameter adjusts the width of glyphs by stretch...
PDFTOOLS_TOOLBOX_EXPORT double PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Font_GetCapHeight(TPtxPdfContent_Font *pFont)
the cap height of the font. The vertical coordinate of the top of flat capital letters,...
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_ColorSpace *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Image_GetColorSpace(TPtxPdfContent_Image *pImage)
the color space in which image samples are specified.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Stroke_SetDashArray(TPtxPdfContent_Stroke *pStroke, const double *pDashArray, size_t nDashArrays)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Stroke_SetLineCapStyle(TPtxPdfContent_Stroke *pStroke, TPtxPdfContent_LineCapStyle iLineCapStyle)
PDFTOOLS_TOOLBOX_EXPORT int PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextFragment_GetCount(TPtxPdfContent_TextFragment *pTextFragment)
Get the number of elements in the list.
PDFTOOLS_TOOLBOX_EXPORT double PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Stroke_GetMiterLimit(TPtxPdfContent_Stroke *pStroke)
PDFTOOLS_TOOLBOX_EXPORT double PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextFragment_GetRise(TPtxPdfContent_TextFragment *pTextFragment)
The rise of the baseline The text rise specifies the distance to move the baseline up or down from it...
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_LineCapStyle PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Stroke_GetLineCapStyle(TPtxPdfContent_Stroke *pStroke)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentElement_GetTransform(TPtxPdfContent_ContentElement *pContentElement, TPtxGeomReal_AffineTransform *pTransform)
the transform to be applied to the alignment rectangle Use this transform matrix to compute the actua...
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextFragment_GetTransform(TPtxPdfContent_TextFragment *pTextFragment, TPtxGeomReal_AffineTransform *pTransform)
the transform to be applied to the bounding box rectangle Use this transform matrix to compute the ac...
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Font_GetRawBaseFontW(TPtxPdfContent_Font *pFont, WCHAR *pBuffer, size_t nBufferSize)
the unmodified PostScript name of the font In contrast to PtxPdfContent_Font_GetBaseFont,...
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_OptionalContentMembership_DependsOn(TPtxPdfContent_OptionalContentMembership *pOptionalContentMembership, TPtxPdf_OptionalContentGroup *pOcg)
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Font_GetGlyphNameW(TPtxPdfContent_Font *pFont, int iCharacterCode, WCHAR *pBuffer, size_t nBufferSize)
the glyph name of a character code. Only simple fonts map character codes to glyph names....
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Stroke_SetDashPhase(TPtxPdfContent_Stroke *pStroke, double dDashPhase)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Stroke_SetMiterLimit(TPtxPdfContent_Stroke *pStroke, double dMiterLimit)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentGenerator_Transform(TPtxPdfContent_ContentGenerator *pContentGenerator, const TPtxGeomReal_AffineTransform *pTransform)
Modify the current transform matrix by concatenating the specified matrix.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextGenerator_MoveTo(TPtxPdfContent_TextGenerator *pTextGenerator, const TPtxGeomReal_Point *pTarget)
Move the current position. This also also sets the beginning of the current line to the specified pos...
PDFTOOLS_TOOLBOX_EXPORT double PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Font_GetItalicAngle(TPtxPdfContent_Font *pFont)
the italic angle of the font. The angle is expressed in degrees counterclockwise from the vertical,...
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_UngroupingSelection PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentExtractor_GetUngrouping(TPtxPdfContent_ContentExtractor *pContentExtractor)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Text_Clear(TPtxPdfContent_Text *pText)
Clear list.
PDFTOOLS_TOOLBOX_EXPORT double PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Stroke_GetDashPhase(TPtxPdfContent_Stroke *pStroke)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Stroke_SetPaint(TPtxPdfContent_Stroke *pStroke, TPtxPdfContent_Paint *pPaint)
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Glyph_GetTextA(TPtxPdfContent_Glyph *pGlyph, char *pBuffer, size_t nBufferSize)
glyph text This is the glyph's associated text.
PDFTOOLS_TOOLBOX_EXPORT double PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextFragment_GetWordSpacing(TPtxPdfContent_TextFragment *pTextFragment)
The additional spacing between words Word spacing works the same way as character spacing,...
#define PDFTOOLS_TOOLBOX_CALL
Definition PdfTools_Toolbox_PtxPdfContent.h:26
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_PathIterator *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Path_GetIterator(TPtxPdfContent_Path *pPath)
Get an iterator for this enumerable.
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Group *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Group_Create(TPtxPdf_Document *pTargetDocument, const TPtxGeomReal_Size *pSize)
Create an empty group object. The returned group object is not yet used on any page,...
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Text_Remove(TPtxPdfContent_Text *pText, int iIndex)
Remove certain element from list.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Font_GetHasUnicodes(TPtxPdfContent_Font *pFont)
Specifies whether the font provides a mapping to Unicode. If FALSE, text written with this font canno...
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_PathGenerator *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_PathGenerator_New(TPtxPdfContent_Path *pPath)
Create a new path generator for appending to a path.
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_OptionalContentMembership *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentElement_GetOcm(TPtxPdfContent_ContentElement *pContentElement)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentGenerator_PaintImageMask(TPtxPdfContent_ContentGenerator *pContentGenerator, TPtxPdfContent_ImageMask *pImageMask, const TPtxGeomReal_Rectangle *pTargetRect, TPtxPdfContent_Paint *pPaint)
Paint an image (stencil) mask.
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Font *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Font_CreateFromSystemW(TPtxPdf_Document *pTargetDocument, const WCHAR *szFamily, const WCHAR *szStyle, BOOL bEmbedded)
Create a new font object from an installed font. The returned font object is not yet used on any page...
PDFTOOLS_TOOLBOX_EXPORT double PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Glyph_GetWidth(TPtxPdfContent_Glyph *pGlyph)
glyph width This is the width of the glyph.
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Content *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Group_GetContent(TPtxPdfContent_Group *pGroup)
the group content. If the group is writable, the content object can be used to apply new content on t...
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_PathIterator_MoveNext(TPtxPdfContent_PathIterator *pPathIterator)
Move the iterator to the next element.
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_ColorSpace *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Paint_GetColorSpace(TPtxPdfContent_Paint *pPaint)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_PathElement_GetAlignmentBox(TPtxPdfContent_PathElement *pPathElement, TPtxGeomReal_Rectangle *pAlignmentBox)
the box for alignment This is a rectangle that may not encompass all parts of an element,...
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Subpath_IsClosed(TPtxPdfContent_Subpath *pSubpath)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentGenerator_AppendContentElement(TPtxPdfContent_ContentGenerator *pContentGenerator, TPtxPdfContent_ContentElement *pContentElement)
Paint a content element.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Subpath_Get(TPtxPdfContent_Subpath *pSubpath, int iIndex, TPtxPdfContent_PathSegment *pPathSegment)
Returns the element at the specified position in the given list.
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_ContentElement *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentElement_Copy(TPtxPdf_Document *pTargetDocument, TPtxPdfContent_ContentElement *pContentElement)
Copy a content element The returned object is associated with the given target document but not yet p...
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextGenerator_Close(TPtxPdfContent_TextGenerator *pObject)
Close object.
PDFTOOLS_TOOLBOX_EXPORT int PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Text_GetCount(TPtxPdfContent_Text *pText)
Get the number of elements in the list.
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_TextGenerator *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextGenerator_New(TPtxPdfContent_Text *pText, TPtxPdfContent_Font *pFont, double dFontSize, const TPtxGeomReal_Point *pLocation)
Create a new text generator for appending text to a text content object. All parameters that cannot b...
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Stroke_SetLineJoinStyle(TPtxPdfContent_Stroke *pStroke, TPtxPdfContent_LineJoinStyle iLineJoinStyle)
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Paint_GetColor(TPtxPdfContent_Paint *pPaint, double *pBuffer, size_t nBufferSize)
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Image *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ImageElement_GetImage(TPtxPdfContent_ImageElement *pImageElement)
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Font_GetGlyphNameA(TPtxPdfContent_Font *pFont, int iCharacterCode, char *pBuffer, size_t nBufferSize)
the glyph name of a character code. Only simple fonts map character codes to glyph names....
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Group_GetKnockout(TPtxPdfContent_Group *pGroup)
the transparency knockout behavior
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Text *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Text_Create(TPtxPdf_Document *pTargetDocument)
Create a text The returned text object is not yet used on any page, but it is associated with the giv...
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Image_Redact(TPtxPdfContent_Image *pImage, const TPtxGeomReal_Rectangle *pRect)
Redact rectangular part of the image Redacts a part of the image specified by a rectangle,...
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Font_IsEmbedded(TPtxPdfContent_Font *pFont)
Specifies whether the font is embedded.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Transparency_SetBlendMode(TPtxPdfContent_Transparency *pTransparency, TPtxPdfContent_BlendMode iBlendMode)
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextFragment_GetRawString(TPtxPdfContent_TextFragment *pTextFragment, unsigned char *pBuffer, size_t nBufferSize)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentGenerator_Restore(TPtxPdfContent_ContentGenerator *pContentGenerator)
Restore the graphics state. The most recently saved state is restored and removed from the graphics s...
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_PathGenerator_Close(TPtxPdfContent_PathGenerator *pObject)
Close object.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_PathGenerator_LineTo(TPtxPdfContent_PathGenerator *pPathGenerator, const TPtxGeomReal_Point *pTarget)
Draw a line. Append a straight line segment from the current point to the target coordinates....
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Subpath *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_PathIterator_GetValue(TPtxPdfContent_PathIterator *pPathIterator)
Get the current element or NULLif no elements are left.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Transparency_SetAlpha(TPtxPdfContent_Transparency *pTransparency, double dAlpha)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentGenerator_PaintPath(TPtxPdfContent_ContentGenerator *pContentGenerator, TPtxPdfContent_Path *pPath, TPtxPdfContent_Fill *pFill, TPtxPdfContent_Stroke *pStroke)
Paint a path. The path is first filled and then stroked The blend mode for filling and stroking must ...
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Glyph_GetPosition(TPtxPdfContent_Glyph *pGlyph, TPtxGeomReal_Point *pPosition)
glyph position
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Stroke *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextFragment_GetStroke(TPtxPdfContent_TextFragment *pTextFragment)
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_ContentExtractorIterator *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentExtractor_GetIterator(TPtxPdfContent_ContentExtractor *pContentExtractor)
Get an iterator for this enumerable.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Image_Extract(TPtxPdfContent_Image *pImage, const TPtxSys_StreamDescriptor *pStreamDesc, const TPtxPdfContent_ImageType *pImageType)
Extract embedded image from PDF.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Fill_SetPaint(TPtxPdfContent_Fill *pFill, TPtxPdfContent_Paint *pPaint)
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Fill *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextFragment_GetFill(TPtxPdfContent_TextFragment *pTextFragment)
PDFTOOLS_TOOLBOX_EXPORT double PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Stroke_GetLineWidth(TPtxPdfContent_Stroke *pStroke)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Group_SetIsolated(TPtxPdfContent_Group *pGroup, BOOL bIsolated)
the transparency isolation behavior
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ImageMask_GetSize(TPtxPdfContent_ImageMask *pImageMask, TPtxGeomInt_Size *pSize)
The size of the image mask in samples.
PDFTOOLS_TOOLBOX_EXPORT double PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Font_GetCharacterWidth(TPtxPdfContent_Font *pFont, int iCharacter)
the width of a single glyph.
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_WritingMode PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextFragment_GetWritingMode(TPtxPdfContent_TextFragment *pTextFragment)
The writing direction This is the writing mode for the text fragment. It applies to all contained TPt...
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_ImageMask *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ImageMaskElement_GetImageMask(TPtxPdfContent_ImageMaskElement *pImageMaskElement)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextGenerator_SetFill(TPtxPdfContent_TextGenerator *pTextGenerator, TPtxPdfContent_Paint *pFill)
The paint for filling The fill paint or NULL if the text should not be filled.
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Glyph_GetTextW(TPtxPdfContent_Glyph *pGlyph, WCHAR *pBuffer, size_t nBufferSize)
glyph text This is the glyph's associated text.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_PathGenerator_CloseSubpath(TPtxPdfContent_PathGenerator *pPathGenerator)
Close the current subpath. Close the current subpath by appending a straight line segment from the cu...
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_ImageType PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Image_GetDefaultImageType(TPtxPdfContent_Image *pImage)
Default extracted image type. The default image type that will be extracted, based on the way that th...
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_IccBasedColorSpace *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_IccBasedColorSpace_Create(TPtxPdf_Document *pTargetDocument, const TPtxSys_StreamDescriptor *pProfile)
Create an new ICC-based color space from an ICC color profile. The returned color space object is not...
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Image *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Image_Create(TPtxPdf_Document *pTargetDocument, const TPtxSys_StreamDescriptor *pStreamDesc)
Create an image object from image data. Supported formats are:
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Font_GetBaseFontW(TPtxPdfContent_Font *pFont, WCHAR *pBuffer, size_t nBufferSize)
the PostScript name of the font
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextGenerator_SetStroke(TPtxPdfContent_TextGenerator *pTextGenerator, TPtxPdfContent_Stroke *pStroke)
The stroke properties The stroke properties or NULL if the text should not be stroked.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextGenerator_SetCharacterSpacing(TPtxPdfContent_TextGenerator *pTextGenerator, double dCharacterSpacing)
the current character spacing.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentElement_SetTransform(TPtxPdfContent_ContentElement *pContentElement, const TPtxGeomReal_AffineTransform *pTransform)
the transform to be applied to the alignment rectangle Use this transform matrix to compute the actua...
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_PathGenerator_BezierTo(TPtxPdfContent_PathGenerator *pPathGenerator, const TPtxGeomReal_Point *pControlPoint1, const TPtxGeomReal_Point *pControlPoint2, const TPtxGeomReal_Point *pTarget)
Draw a bezier curve.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextGenerator_SetWordSpacing(TPtxPdfContent_TextGenerator *pTextGenerator, double dWordSpacing)
the current word spacing.
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Stroke_GetDashArray(TPtxPdfContent_Stroke *pStroke, double *pBuffer, size_t nBufferSize)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Font_GetLeading(TPtxPdfContent_Font *pFont, double *pLeading)
the leading of the font.
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Group *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_GroupElement_GetGroup(TPtxPdfContent_GroupElement *pGroupElement)
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL PtxPdfContent_OptionalContentMembership_GetExpressionW(TPtxPdfContent_OptionalContentMembership *pOptionalContentMembership, WCHAR *pBuffer, size_t nBufferSize)
The content element visibility function.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_OptionalContentMembership_IsVisible(TPtxPdfContent_OptionalContentMembership *pOptionalContentMembership)
The element visibility. TRUE if the element is visible in the default configuration or PtxPdf_Documen...
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_PathGenerator_AddRectangle(TPtxPdfContent_PathGenerator *pPathGenerator, const TPtxGeomReal_Rectangle *pRectangle)
Append a rectangle to the current path as a complete subpath.
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_ColorSpace *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ColorSpace_Copy(TPtxPdf_Document *pTargetDocument, TPtxPdfContent_ColorSpace *pColorSpace)
Copy a color space Copy a color space object from an input document to the given pTargetDocument....
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextFragment_Remove(TPtxPdfContent_TextFragment *pTextFragment, int iIndex)
Remove certain element from list.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextGenerator_SetFont(TPtxPdfContent_TextGenerator *pTextGenerator, TPtxPdfContent_Font *pFont)
the current font. The font is used for all subsequent PtxPdfContent_TextGenerator_Show and PtxPdfCont...
PDFTOOLS_TOOLBOX_EXPORT int PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Subpath_GetCount(TPtxPdfContent_Subpath *pSubpath)
Get the number of elements in the list.
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Fill *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Fill_New(TPtxPdfContent_Paint *pPaint)
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Font_GetBaseFontA(TPtxPdfContent_Font *pFont, char *pBuffer, size_t nBufferSize)
the PostScript name of the font
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Subpath_GetStartPoint(TPtxPdfContent_Subpath *pSubpath, TPtxGeomReal_Point *pStartPoint)
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL PtxPdfContent_OptionalContentMembership_GetExpressionA(TPtxPdfContent_OptionalContentMembership *pOptionalContentMembership, char *pBuffer, size_t nBufferSize)
The content element visibility function.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Group_GetIsolated(TPtxPdfContent_Group *pGroup)
the transparency isolation behavior
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Fill_SetInsideRule(TPtxPdfContent_Fill *pFill, TPtxPdfContent_InsideRule iInsideRule)
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Font_GetWeight(TPtxPdfContent_Font *pFont, TPtxPdfContent_FontWeight *pWeight)
the visual weight of the font. Indicates the visual weight (degree of blackness or thickness of strok...
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Glyph *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextFragment_Get(TPtxPdfContent_TextFragment *pTextFragment, int iIndex)
Returns the element at the specified position in the given list.
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ContentGenerator_Close(TPtxPdfContent_ContentGenerator *pObject)
Close object.
PDFTOOLS_TOOLBOX_EXPORT double PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextFragment_GetFontSize(TPtxPdfContent_TextFragment *pTextFragment)
The font size.
PDFTOOLS_TOOLBOX_EXPORT size_t PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Font_GetRawBaseFontA(TPtxPdfContent_Font *pFont, char *pBuffer, size_t nBufferSize)
the unmodified PostScript name of the font In contrast to PtxPdfContent_Font_GetBaseFont,...
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Group_SetKnockout(TPtxPdfContent_Group *pGroup, BOOL bKnockout)
the transparency knockout behavior
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Paint *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Paint_Create(TPtxPdf_Document *pTargetDocument, TPtxPdfContent_ColorSpace *pColorSpace, const double *pColor, size_t nColors, TPtxPdfContent_Transparency *pTransparency)
Create an new paint. Transparency is supported by PDF 1.4 or higher and by PDF/A-2 or higher....
PDFTOOLS_TOOLBOX_EXPORT double PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Font_GetAscent(TPtxPdfContent_Font *pFont)
the ascent of the font. The maximum height above the baseline reached by glyphs in this font,...
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextGenerator_SetLeading(TPtxPdfContent_TextGenerator *pTextGenerator, double dLeading)
the current leading.
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_ColorSpaceType PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ColorSpace_GetType(TPtxPdfContent_ColorSpace *pColorSpace)
Get actual derived type of base type TPtxPdfContent_ColorSpace.
PDFTOOLS_TOOLBOX_EXPORT double PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextFragment_GetCharacterSpacing(TPtxPdfContent_TextFragment *pTextFragment)
The additional spacing between glyphs When the glyph for each character in the text is rendered,...
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_PathGenerator_AddEllipse(TPtxPdfContent_PathGenerator *pPathGenerator, const TPtxGeomReal_Rectangle *pRectangle)
Add an ellipse to the current path as a complete subpath.
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Font *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_TextFragment_GetFont(TPtxPdfContent_TextFragment *pTextFragment)
The font The returned TPtxPdfContent_Font can only be used for extraction purposes....
PDFTOOLS_TOOLBOX_EXPORT BOOL PDFTOOLS_TOOLBOX_CALL PtxPdfContent_PathGenerator_AddPie(TPtxPdfContent_PathGenerator *pPathGenerator, const TPtxGeomReal_Rectangle *pRectangle, double dAlpha1, double dAlpha2)
Add an elliptical piece of pie to the current path as a complete subpath.
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_ImageMask *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_ImageMask_Create(TPtxPdf_Document *pTargetDocument, const TPtxSys_StreamDescriptor *pStreamDesc)
Create an image mask object from image data. Supported formats are:
PDFTOOLS_TOOLBOX_EXPORT TPtxPdfContent_Paint *PDFTOOLS_TOOLBOX_CALL PtxPdfContent_Fill_GetPaint(TPtxPdfContent_Fill *pFill)
TPtxPdfContent_UngroupingSelection
Definition PdfTools_Toolbox_Types.h:562
TPtxPdfContent_ImageType
Definition PdfTools_Toolbox_Types.h:662
TPtxPdfContent_BlendMode
Definition PdfTools_Toolbox_Types.h:402
TPtxPdfContent_WritingMode
Definition PdfTools_Toolbox_Types.h:588
TPtxPdfContent_ContentElementType
Type and subtype enumeration of TPtxPdfContent_ContentElement.
Definition PdfTools_Toolbox_Types.h:1001
TPtxPdfContent_InsideRule
Definition PdfTools_Toolbox_Types.h:389
TPtxPdfContent_ArtifactType
Definition PdfTools_Toolbox_Types.h:692
TPtxPdfContent_FontWeight
Definition PdfTools_Toolbox_Types.h:607
TPtxPdfContent_LineJoinStyle
Definition PdfTools_Toolbox_Types.h:373
TPtxPdfContent_LineCapStyle
Definition PdfTools_Toolbox_Types.h:357
#define BOOL
Definition PdfTools_Toolbox_Types.h:23
TPtxPdfContent_ProcessColorSpaceType
Definition PdfTools_Toolbox_Types.h:341
TPtxPdfContent_ColorSpaceType
Type and subtype enumeration of TPtxPdfContent_ColorSpace.
Definition PdfTools_Toolbox_Types.h:970
Represents the content of a page or a group. The class has no methods on its own, but can be modified...
Paths define shapes, trajectories, and regions of all sorts. A path is made up of one or more disconn...
A disconnected subpath. A container for connected path segments.
Definition PdfTools_Toolbox_Types.h:2275
Definition PdfTools_Toolbox_Types.h:2233
Definition PdfTools_Toolbox_Types.h:2161
Definition PdfTools_Toolbox_Types.h:2189
Definition PdfTools_Toolbox_Types.h:2175
Definition PdfTools_Toolbox_Types.h:2289
Structure that groups a set of callbacks that model streams.
Definition PdfTools_Toolbox_PtxSys.h:49