#pragma once
#ifdef __cplusplus
extern "C"
{
#endif
#ifndef RTPDF
#endif
{
#ifndef RTPDF
{
return 0;
}
#endif
int RTPdfDrawText(
LPPDFINFO pdev, RECT rcText, UINT nTextAlign,
int bClipToBoundaries, COLORREF crTextColor,
const BYTE *pbCharCodes,
int nCharCount,
int nEncoding);
#define PDF_PATH_NONE 0
#define PDF_PATH_STROKE 1
#define PDF_PATH_FILL 2
#define PDF_PATH_FILLANDSTROKE 3
#define PDF_PATH_FILL_WINDING 8
BRUSHOBJ *pboFill, PPOINTL pptlBrushOrg, ULONG mix, FLONG flOptions);
#ifdef __cplusplus
}
#endif
void * LPPDFINFO
Definition: RTPDF-32.h:21
void RTPdfEnd(LPPDFINFO pdev)
Clear all memory allocated while creating a PDF file and free the PDFINFO structure.
LPPDFINFO RTPdfInit()
Allocate memory and initialize a PDFINFO structure.
int RTPdfClosePort(HANDLE hPort, int bCancel)
Close the file or port that was opened in RTPdfOpenPort.
int RTPdfSetFont(LPPDFINFO pdev, HANDLE hFont, float fPointSize)
Set the font to be used in all text drawing operations after this function is called.
float RTPdfGetTextWidth(HANDLE hFont, float fPointSize, const BYTE *pbCharCodes, int nCharCount, int nEncoding)
Get width of a text string given the font name and size.
HANDLE RTPdfGetFont(LPPDFINFO pdev, const char *szFontName, int bBold, int bItalic, int nCodePage, int bType1, int bCID)
Create a PDF font object and return a handle that can be used to render text on a page RTPdfStartDoc ...
int RTPdfDrawText(LPPDFINFO pdev, RECT rcText, UINT nTextAlign, int bClipToBoundaries, COLORREF crTextColor, const BYTE *pbCharCodes, int nCharCount, int nEncoding)
Draw text given a bounding rectangle.
int IsMetricCountry()
This function is used to set the default paper size to Letter or A4 By default RTPDF-32 attempts to r...
Definition: RTPDF-32.h:312
void RTPdfSetDrawingOrigin(LPPDFINFO pdev, long lXOrg, long lYOrg)
Shift all drawing operations by a certain distance To reset the origin, call the same function with o...
PATHOBJ * RTPdfCreatePath(LPPDFINFO pdev)
Create a path object made of lines and curves to be used in all vector drawing operations See PATHOB...
int RTPdfSetDocumentInfo(LPPDFINFO pdev, DocumentInfo nDocumentInfo, const BYTE *szEntryValue)
Set a document information attribute (also known as Metadata) The attributes should be set before ca...
int RTPdfTextOut(LPPDFINFO pdev, CLIPOBJ *pco, BRUSHOBJ *pboText, long lPosX, long lPosY, float fAngle, const BYTE *pbCharCodes, int nCharCount, int nEncoding)
HANDLE RTPdfGetImage(LPPDFINFO pdev, const BYTE *pbImageData, unsigned long ulImageSize)
Output an image object to the PDF stream without yet drawing any image BMP, JPeg and PNG images are c...
enum _DocumentInfo DocumentInfo
Enumeration of the various document info attributes that can be used in RTPdfSetDocumentInfo.
int RTPdfSetLicenseKey(LPPDFINFO pdev, const char *szLicensee, const char *szKey, int nKeyLen)
Set the License Key for the library. The license key contains specific licensed features and the libr...
int RTPdfDrawImage(LPPDFINFO pdev, CLIPOBJ *pco, HANDLE hImage, long lStartX, long lStartY, long lWidth, long lHeight, int bKeepAspectRatio)
Draw a preloaded image to a specific location on a page All units should be provided in PDF units whe...
_DocumentInfo
Enumeration of the various document info attributes that can be used in RTPdfSetDocumentInfo.
Definition: RTPDF-32.h:147
@ DocumentInfoTitle
Definition: RTPDF-32.h:148
@ DocumentInfoSubject
Definition: RTPDF-32.h:151
@ DocumentInfoKeywords
Definition: RTPDF-32.h:152
@ DocumentInfoCreator
Definition: RTPDF-32.h:150
@ DocumentInfoAuthor
Definition: RTPDF-32.h:149
int RTPdfWritePort(HANDLE hPort, const unsigned char *pData, unsigned long *pdwDataSize)
Write a block of data to the specified file or port.
int RTPdfSetTextSpacing(LPPDFINFO pdev, long lWordSpacing, long lCharSpacing)
Set the Word and Character spacing of any text drawn after this function is called.
void * HANDLE
Definition: RTPDF-32.h:22
int RTPdfEndDoc(LPPDFINFO pdev)
End the current document, no output is allowed after this call.
int RTPdfEndPage(LPPDFINFO pdev)
End the current page.
void RTPdfDeletePath(PATHOBJ *ppo)
Delete the path object created through RTPdfCreatePath.
HANDLE RTPdfOpenPort(const char *szDocTitle, const unsigned long dwJobId)
Allows the caller to create a file or open a port to where the PDF data is sent.
int RTPdfStrokeAndFillPath(LPPDFINFO pdev, PATHOBJ *ppo, CLIPOBJ *pco, BRUSHOBJ *pboStroke, PLINEATTRS plineattrs, BRUSHOBJ *pboFill, PPOINTL pptlBrushOrg, ULONG mix, FLONG flOptions)
Draw a path object made of straight lines and/or Bezier curves If requested, also fill the path using...
Definition: RTPDF-DDI.h:88
Definition: RTPDF-DDI.h:104
Definition: RTPDF-DDI.h:57
Definition: RTPDF-DDI.h:82