#include "precomp.h"
#include "oemps.h"
#include "resource.h"
#include <math.h>
#include <PRCOMOEM.H>
#include "CCTChar.h"
#include "CCPrintRegistry.h"
#include "GlyphTranslator.h"
#include "CCPrintData.h"
#include "intrface.h"
#include "PngImage.h"
#include "SQLiteDB.h"
Go to the source code of this file.
Defines | |
#define | URLBOX "\n[ /Rect [%d %d %d %d]\n\ /Action << /Subtype /URI /URI (%s) >>\n\ /Border [0 0 2]\n\ /Color [.7 0 0]\n\ /Subtype /Link\n\ /Title (%s)\n\ /ANN pdfmark\n" |
PDFMark URL link box definition. | |
#define | HYPERLINK_FUNC "/cc_hyperlink { dup show stringwidth pop neg\n\ gsave 0 currentfont dup\n\ /FontInfo get /UnderlineThickness get exch\n\ /FontMatrix get dtransform setlinewidth 0 currentfont dup\n\ /FontInfo get /UnderlinePosition get exch\n\ /FontMatrix get dtransform rmoveto rlineto stroke\n\ grestore\n\} def\n" |
PDFMark hyperlink function definition. | |
#define | HYPERLINK_START "\ncurrentpoint\n\ %d sub\n\ currentcolor 0 0 128 setrgbcolor\ (" |
PDFMark hyperlink start definition. | |
#define | HYPERLINK_END ") cc_hyperlink\n\ setcolor\n\ currentpoint\n\ [ /Rect 6 -4 roll 4 array astore\n\ /Action << /Subtype /URI /URI (%s) >>\n\ /Border [0 0 2]\n\ /Color [.7 0 0]\n\ /Subtype /Link\n\ /ANN pdfmark\n" |
PDFMark hyperlink close definition. | |
#define | JUMPBOX "\n[ /Rect [%d %d %d %d]\n\ /Border [0 0 2]\n\ /Color [.7 0 0]\n\ /Dest /%s\n\ /Title (%s)\n\ /Subtype /Link\n\ /ANN pdfmark\n" |
PDFMark internal document link box definition. | |
#define | JUMPDEST "\n[ /Dest /%s\n\ /View [/Fit]\n\ /DEST pdfmark\n" |
PDFMark internal document destination definition. | |
#define | JUMPINTERNAL_TITLE "\n[ /Rect [%d %d %d %d]\n\ /Border [0 0 2]\n\ /Color [.7 0 0]\n\ /Page %d\n\ /View [/XYZ %d %d 0]\n\ /Title (%s)\n\ /Subtype /Link\n\ /ANN pdfmark\n" |
PDFMark internal document link to unnamed destination. | |
#define | JUMPINTERNAL "\n[ /Rect [%d %d %d %d]\n\ /Border [0 0 2]\n\ /Color [.7 0 0]\n\ /Page %d\n\ /View [/XYZ %d %d 0]\n\ /Subtype /Link\n\ /ANN pdfmark\n" |
PDFMark internal document link to unnamed destination. | |
#define | PS_TEXT_START "/Times-Roman findfont [%d 0 0 -%d 0 0 ] makefont setfont\n\%d %d moveto\n\(" |
Postscript text writing (with font) start definition. | |
#define | PS_TEXT_END ") show\n" |
Postscript text (with font) writing end definition. | |
#define | PS_JUSTTEXT_START "(" |
Postscript text writing start definition. | |
#define | PS_JUSTTEXT_END ") show \n" |
Postscript text writing end definition. | |
#define | PS_TEXT_END_CENTER ")\n\dup stringwidth pop\n\%d exch sub\n\2 div\n\0 rmoveto\n\show\n" |
Postscript text writing (centered) helper function definition. | |
#define | PS_CALC_CENTER_START "/Times-Roman findfont [%d 0 0 -%d 0 0 ] makefont setfont\n\%d %d moveto\n\(" |
Postscript text writing (centered) start definition. | |
#define | PS_CALC_CENTER_END ") stringwidth pop\n\%d exch sub\n\2 div\n\0 rmoveto\n" |
Postscript text writing (centered) end definition. | |
#define | PS_CIRCLE "newpath %d %d %d 0 360 arc fill closepath\n" |
Postscript circle definition. | |
#define | PS_IMAGE_START "gsave\n\%d %d translate\n\%d %d scale\n\%d %d %d [%d 0 0 -%d 0 %d] {<\n" |
PostScript image start definition. | |
#define | PS_IMAGE_END "\n>} image\n\grestore\n"; |
PostScript image end definition. | |
#define | CREATEDBY_TEXT "The document was created by " |
'Created by' text | |
#define | CREATEDBY_LINK_TEXT "Excel to PDF Converter" |
'Created by' link text | |
#define | CREATEDBY_LINK "http://www.cogniview.com/excel-to-pdf-converter.php" |
'Created by' link | |
#define | PS_NO_LICENSE_INFO "\n[ /Rights (False)\n\ /RightsURL (" |
Postscript public domain license information data: (note - special fix in ghostscript to handle this!). | |
#define | PS_LICENSE_INFO_START "\n[ /Rights (True)\n\ /RightsURL (" |
Postscript public domain license information data: (note - special fix in ghostscript to handle this!). | |
Functions | |
UINT | GetLicenseImage (const LicenseInfo &info) |
This function retrieves the resource ID of the image associated with the license. | |
BOOL | DrawImage (SURFOBJ *pso, SURFOBJ *pSrc, RECTL &rectTarget) |
This function copies an image from the source surface to the destination surface. | |
BOOL | DrawImage (SURFOBJ *pso, const PngImage &png, RECTL &rectTarget) |
This function draws a loaded PNG image onto the received surface in the specified location. | |
BOOL | DrawImage (SURFOBJ *pso, HBITMAP hBmp, RECTL &rectTarget) |
This function draws a loaded BITMAP image onto the received surface in the specified location. | |
void | AddPSText (LPSTR lpString, LPCSTR lpText, std::tstring::size_type dwLen) |
This function escapes text to be able to write it in PostScript. | |
void | AddPSText (LPSTR lpString, const std::string &s) |
This function escapes text to be able to write it in PostScript. | |
void | PrintPS (PDEVOBJ pdevobj, POEMPDEV pDevOEM, LPCSTR lpText) |
This function writes text to the PostScript file. | |
void | PrintCircle (PDEVOBJ pdevobj, POEMPDEV pDevOEM, int nX, int nY, int nRadius) |
This function creates a circle on the specified location in the PostScript file. | |
void | CenterText (PDEVOBJ pdevobj, POEMPDEV pDevOEM, int nFontSize, int nX, int nY, int nWidth, LPCSTR lpText) |
This function writes a centered text string into the PostScript file. | |
void | PrintJumpLink (PDEVOBJ pdevobj, POEMPDEV pDevOEM, LPCSTR lpDestination, const RECTL &rectTarget, LPCSTR lpTitle=NULL) |
This function writes an inner-document link box into the PostScript file. | |
void | PrintInternalLink (PDEVOBJ pdevobj, POEMPDEV pDevOEM, const RECTL &rectTarget, long lPage, long lX, long lY, LPCSTR lpTitle=NULL) |
This function writes an unnamed inner-document link box into the PostScript file. | |
void | PrintJumpDestination (PDEVOBJ pdevobj, POEMPDEV pDevOEM, LPCSTR lpDestination) |
This function writes a destination mark into the PostScript file (target for inner-document links). | |
void | PrintURLLink (PDEVOBJ pdevobj, POEMPDEV pDevOEM, LPCSTR lpURL, const RECTL &rectTarget, LPCSTR lpTitle=NULL) |
This function writes a URL link box into the PostScript file. | |
void | PrintHyperlink (PDEVOBJ pdevobj, POEMPDEV pDevOEM, int nFontSize, LPCSTR lpText, std::tstring::size_type dwLen, LPCSTR lpURL) |
This function writes a Hyperlinked text into the PostScript file. | |
size_t | PrepareWriteString (LPSTR lpString, int nStringSize, int nFontSize, int nX, int nY, LPCSTR lpText, std::tstring::size_type dwLen, int nWidth=-1) |
This function prepares a text string so it can be written into PostScript. | |
void | PrintText (PDEVOBJ pdevobj, POEMPDEV pDevOEM, LPCSTR lpText) |
This function writes text into the postscript file (without a specific location). | |
int | PrintText (PDEVOBJ pdevobj, POEMPDEV pDevOEM, int nFontSize, int nX, int nY, int nWidth, int nLineHeight, LPCSTR lpText, bool bCenter=false) |
This function writes text into the postscript file in a specific location, breaking into lines if necessary. | |
BOOL | PrintImage (PDEVOBJ pdevobj, POEMPDEV pDevOEM, HBITMAP hBmp, RECTL &rectTargetArea) |
This function writes a bitmap image directly into the PostScript file. | |
BOOL | DoLicensePage (SURFOBJ *pso) |
This function adds the license page to the PostScript file. | |
BOOL APIENTRY | OEMStartPage (SURFOBJ *pso) |
This function is called when a new page is printed into the PostScript file. | |
BOOL APIENTRY | OEMSendPage (SURFOBJ *pso) |
This function is called when a page has been printed into the PostScript file. | |
BOOL APIENTRY | OEMStartDoc (SURFOBJ *pso, PWSTR pwszDocName, DWORD dwJobId) |
This function is called when a print job has started. | |
BOOL APIENTRY | OEMEndDoc (SURFOBJ *pso, FLONG fl) |
This function is called the printing has ended. | |
ULONG APIENTRY | OEMEscape (SURFOBJ *pso, ULONG iEsc, ULONG cjIn, PVOID pvIn, ULONG cjOut, PVOID pvOut) |
This function is called when an escape code is sent to the printer. | |
BOOL APIENTRY | OEMTextOut (SURFOBJ *pso, STROBJ *pstro, FONTOBJ *pfo, CLIPOBJ *pco, RECTL *prclExtra, RECTL *prclOpaque, BRUSHOBJ *pboFore, BRUSHOBJ *pboOpaque, POINTL *pptlOrg, MIX mix) |
This function is called when a text is writen to the printer. | |
Variables | |
HINSTANCE | ghInstance |
Instance of module (defined at dllentry.cpp). |
Definition in file ddihook.cpp.
void AddPSText | ( | LPSTR | lpString, | |
const std::string & | s | |||
) |
This function escapes text to be able to write it in PostScript.
lpString | The string to fill with the escaped text | |
s | The original string to write |
Definition at line 392 of file ddihook.cpp.
References AddPSText().
void AddPSText | ( | LPSTR | lpString, | |
LPCSTR | lpText, | |||
std::tstring::size_type | dwLen | |||
) |
This function escapes text to be able to write it in PostScript.
lpString | The string to fill with the escaped text | |
lpText | The original text | |
dwLen | Length of original text |
Definition at line 364 of file ddihook.cpp.
Referenced by AddPSText(), CenterText(), OEMSendPage(), PrepareWriteString(), PrintHyperlink(), and PrintText().
void CenterText | ( | PDEVOBJ | pdevobj, | |
POEMPDEV | pDevOEM, | |||
int | nFontSize, | |||
int | nX, | |||
int | nY, | |||
int | nWidth, | |||
LPCSTR | lpText | |||
) |
This function writes a centered text string into the PostScript file.
pdevobj | Pointer to the device object representing the PostScript printer | |
pDevOEM | Pointer to the CC PDF Converter render plugin object | |
nFontSize | Size of the font to print at | |
nX | X Location of the start of the string's bound box | |
nY | Y location of the string's bound box | |
nWidth | Width of the string's bound box | |
lpText | The text to write |
Definition at line 435 of file ddihook.cpp.
References AddPSText(), PrintPS(), PS_CALC_CENTER_END, and PS_CALC_CENTER_START.
Referenced by DoLicensePage().
BOOL DoLicensePage | ( | SURFOBJ * | pso | ) |
This function adds the license page to the PostScript file.
pso | Pointer to the surface object representing the writing PostScript file |
Definition at line 676 of file ddihook.cpp.
References CenterText(), CREATEDBY_LINK, CREATEDBY_LINK_TEXT, CREATEDBY_TEXT, SQLite::Record::GetField(), SQLite::DB::GetLastError(), SQLite::Record::GetNumField(), SQLite::Recordset::GetRecord(), SQLite::Recordset::GetRecordCount(), CCPrintRegistry::GetRegistryString(), ghInstance, LicenseInfo::HasJurisdiction(), HYPERLINK_FUNC, tagOEMDEV::info, SQLite::Record::IsValid(), SQLite::Recordset::IsValid(), LicenseInfo::m_bCommercialUse, LicenseInfo::m_cJurisdiction, LicenseInfo::m_eLicense, LicenseInfo::m_eModification, LicenseInfo::m_eSampling, MakeAnsiString(), MakeTString(), SQLite::DB::Open(), PrintCircle(), PrintHyperlink(), PrintImage(), PrintJumpDestination(), PrintPS(), PrintText(), SQLite::DB::Query(), and tstring.
Referenced by OEMEndDoc().
BOOL DrawImage | ( | SURFOBJ * | pso, | |
HBITMAP | hBmp, | |||
RECTL & | rectTarget | |||
) |
This function draws a loaded BITMAP image onto the received surface in the specified location.
pso | The surface to draw upon | |
hBmp | The bitmap to draw | |
rectTarget | The drawing location |
Definition at line 175 of file ddihook.cpp.
References DrawImage().
BOOL DrawImage | ( | SURFOBJ * | pso, | |
const PngImage & | png, | |||
RECTL & | rectTarget | |||
) |
This function draws a loaded PNG image onto the received surface in the specified location.
pso | The surface to draw upon | |
png | The image to draw | |
rectTarget | The drawing location |
Definition at line 127 of file ddihook.cpp.
References DrawImage(), PngImage::GetBits(), PngImage::GetBitsPerPixel(), PngImage::GetHeight(), PngImage::GetWidth(), and PngImage::GetWidthInBytes().
BOOL DrawImage | ( | SURFOBJ * | pso, | |
SURFOBJ * | pSrc, | |||
RECTL & | rectTarget | |||
) |
This function copies an image from the source surface to the destination surface.
pso | The destination surface | |
pSrc | The source surface (the image must be attached to it already) | |
rectTarget | The location to draw the image at |
Definition at line 85 of file ddihook.cpp.
Referenced by DrawImage(), and OEMSendPage().
UINT GetLicenseImage | ( | const LicenseInfo & | info | ) |
This function retrieves the resource ID of the image associated with the license.
info | The license information |
Definition at line 52 of file ddihook.cpp.
References LicenseInfo::m_bCommercialUse, LicenseInfo::m_eLicense, LicenseInfo::m_eModification, and LicenseInfo::m_eSampling.
Referenced by OEMSendPage().
BOOL APIENTRY OEMEndDoc | ( | SURFOBJ * | pso, | |
FLONG | fl | |||
) |
This function is called the printing has ended.
pso | Pointer to the surface object representing the writing PostScript file | |
fl | Status of the print job |
Definition at line 1258 of file ddihook.cpp.
References _OEMPDEV::bUsedPrintData, CCPrintData::CleanSaved(), _OEMPDEV::dataLinks, DoLicensePage(), tagOEMDEV::info, LicenseInfo::m_eLicense, OEMStartPage(), and _OEMPDEV::pTranslator.
ULONG APIENTRY OEMEscape | ( | SURFOBJ * | pso, | |
ULONG | iEsc, | |||
ULONG | cjIn, | |||
PVOID | pvIn, | |||
ULONG | cjOut, | |||
PVOID | pvOut | |||
) |
This function is called when an escape code is sent to the printer.
pso | Pointer to the surface object representing the writing PostScript file | |
iEsc | The escape code | |
cjIn | Amount of data in the escape sequence | |
pvIn | Pointer to the escape sequence data | |
cjOut | Size of output buffer | |
pvOut | Output buffer |
This printer supports sending a Link escape sequense as detailed in oemps.h !
Definition at line 1320 of file ddihook.cpp.
References _OEMPDEV::bNeedText, ESCAPE_DISABLE_AUTO_URL, ESCAPE_LINK_DATA, and _OEMPDEV::pLinks.
BOOL APIENTRY OEMSendPage | ( | SURFOBJ * | pso | ) |
This function is called when a page has been printed into the PostScript file.
pso | Pointer to the surface object representing the writing PostScript file |
Definition at line 911 of file ddihook.cpp.
References CCPrintData::AddLink(), AddPSText(), tagOEMDEV::bAutoURLs, EscapeLinkData::bottom, tagOEMDEV::bSetProperties, _OEMPDEV::bUsedPrintData, _OEMPDEV::dataLinks, DrawImage(), LicenseLocationInfo::eFirstPage, LicenseLocationInfo::eOtherPages, PngImage::GetHeight(), GetLicenseImage(), CCPrintData::GetPageData(), PngImage::GetWidth(), ghInstance, CCPrintData::HasData(), tagOEMDEV::info, TextArea::InitSearch(), CCPrintData::LinkData::IsInner(), CCPrintData::LinkData::IsLocation(), CCPrintData::IsTestPage(), EscapeLinkData::left, PngImage::LoadFromResource(), tagOEMDEV::location, LicenseLocationInfo::LocationForPage(), EscapeLinkData::lTitleOffset, LicenseInfo::m_cName, LicenseInfo::m_cURI, LicenseInfo::m_eLicense, MakeAnsiString(), CCPrintData::LinkData::nPage, _OEMPDEV::nPage, CCPrintData::LinkData::nRepeat, _OEMPDEV::oText, InnerEscapeLinkData::pData, _OEMPDEV::pLinks, InnerEscapeLinkData::pNext, PrintInternalLink(), PrintJumpLink(), PrintPS(), PrintURLLink(), PS_LICENSE_INFO_START, PS_NO_LICENSE_INFO, CCPrintData::LinkData::ptOffset, CCPrintData::LinkData::rectLocation, EscapeLinkData::right, TextArea::SearchFor(), TextArea::SearchForURL(), CCPrintData::SetPageSize(), CCPrintData::SetTestPage(), CCPrintData::LinkData::sText, CCPrintData::LinkData::sTitle, CCPrintData::LinkData::sURL, EscapeLinkData::top, CCPrintData::UpdateProcessData(), and EscapeLinkData::url.
BOOL APIENTRY OEMStartDoc | ( | SURFOBJ * | pso, | |
PWSTR | pwszDocName, | |||
DWORD | dwJobId | |||
) |
This function is called when a print job has started.
pso | Pointer to the surface object representing the writing PostScript file | |
pwszDocName | Name of the document printed | |
dwJobId | Print job ID |
Definition at line 1176 of file ddihook.cpp.
References tagOEMDEV::bAutoOpen, tagOEMDEV::bAutoURLs, tagOEMDEV::bCreateAsTemp, _OEMPDEV::bLoadedData, _OEMPDEV::bNeedText, _OEMPDEV::bUsedPrintData, tagOEMDEV::cFilename, _OEMPDEV::dataLinks, CCPrintData::GetPageCount(), CCPrintData::IsTestPage(), CCPrintData::LoadProcessData(), MakeAnsiString(), _OEMPDEV::pLinks, _OEMPDEV::pOEMHelp, _OEMPDEV::pTranslator, and CCPrintData::SetTestPage().
BOOL APIENTRY OEMStartPage | ( | SURFOBJ * | pso | ) |
This function is called when a new page is printed into the PostScript file.
pso | Pointer to the surface object representing the writing PostScript file |
Definition at line 880 of file ddihook.cpp.
References _OEMPDEV::bLoadedData, _OEMPDEV::bNeedText, _OEMPDEV::dataLinks, CCPrintData::GetPageData(), CCPrintData::IsTestPage(), and _OEMPDEV::nPage.
Referenced by OEMEndDoc().
BOOL APIENTRY OEMTextOut | ( | SURFOBJ * | pso, | |
STROBJ * | pstro, | |||
FONTOBJ * | pfo, | |||
CLIPOBJ * | pco, | |||
RECTL * | prclExtra, | |||
RECTL * | prclOpaque, | |||
BRUSHOBJ * | pboFore, | |||
BRUSHOBJ * | pboOpaque, | |||
POINTL * | pptlOrg, | |||
MIX | mix | |||
) |
This function is called when a text is writen to the printer.
pso | Pointer to the surface object representing the writing PostScript file | |
pstro | Pointer to a printing glyph list and location for each | |
pfo | Pointer to the font structure | |
pco | Pointer to the clipping information structure | |
prclExtra | Not used (always NULL) | |
prclOpaque | Opaque rectangle location | |
pboFore | Foreground brush object | |
pboOpaque | Opaque brush object | |
pptlOrg | Brush origin | |
mix | The brush raster operation |
Definition at line 1391 of file ddihook.cpp.
References TextArea::AddLine(), _OEMPDEV::bNeedText, GlyphTranslator::GetFontTranslation(), _OEMPDEV::oText, and _OEMPDEV::pTranslator.
size_t PrepareWriteString | ( | LPSTR | lpString, | |
int | nStringSize, | |||
int | nFontSize, | |||
int | nX, | |||
int | nY, | |||
LPCSTR | lpText, | |||
std::tstring::size_type | dwLen, | |||
int | nWidth = -1 | |||
) |
This function prepares a text string so it can be written into PostScript.
lpString | The string to fill | |
nFontSize | Size of the font to use | |
nX | X location of the start of the text | |
nY | Y location of the start of the text | |
lpText | The text to write | |
dwLen | Length of the text string | |
nWidth | Width of the text's bounding box (-1 so it won't be centered) |
Note that not specifying nWidth (or setting it to -1) will write the text as it is, and specifying nWidth will center the text inside a box starting at nX and being nWidth wide
Definition at line 547 of file ddihook.cpp.
References AddPSText(), PS_TEXT_END, PS_TEXT_END_CENTER, and PS_TEXT_START.
Referenced by PrintText().
void PrintCircle | ( | PDEVOBJ | pdevobj, | |
POEMPDEV | pDevOEM, | |||
int | nX, | |||
int | nY, | |||
int | nRadius | |||
) |
This function creates a circle on the specified location in the PostScript file.
pdevobj | Pointer to the device object representing the PostScript printer | |
pDevOEM | Pointer to the CC PDF Converter render plugin object | |
nX | X location of the center of the circle | |
nY | Y location of the center of the circle | |
nRadius | Radius of the circle |
Definition at line 418 of file ddihook.cpp.
References PrintPS(), and PS_CIRCLE.
Referenced by DoLicensePage().
void PrintHyperlink | ( | PDEVOBJ | pdevobj, | |
POEMPDEV | pDevOEM, | |||
int | nFontSize, | |||
LPCSTR | lpText, | |||
std::tstring::size_type | dwLen, | |||
LPCSTR | lpURL | |||
) |
This function writes a Hyperlinked text into the PostScript file.
pdevobj | Pointer to the device object representing the PostScript printer | |
pDevOEM | Pointer to the CC PDF Converter render plugin object | |
nFontSize | Size of the font to write in | |
lpText | Text of the link | |
dwLen | Length of the text | |
lpURL | The URL of the link (must be NULL terminated) |
Definition at line 522 of file ddihook.cpp.
References AddPSText(), HYPERLINK_END, HYPERLINK_START, and PrintPS().
Referenced by DoLicensePage().
BOOL PrintImage | ( | PDEVOBJ | pdevobj, | |
POEMPDEV | pDevOEM, | |||
HBITMAP | hBmp, | |||
RECTL & | rectTargetArea | |||
) |
This function writes a bitmap image directly into the PostScript file.
pdevobj | Pointer to the device object representing the PostScript printer | |
pDevOEM | Pointer to the CC PDF Converter render plugin object | |
hBmp | The bitmap to write | |
rectTargetArea | In: Horizontal bound box, Y location of the bitmap; Out: Actual location of the bitmap |
Definition at line 631 of file ddihook.cpp.
References _OEMPDEV::pOEMHelp, PS_IMAGE_END, and PS_IMAGE_START.
Referenced by DoLicensePage().
void PrintInternalLink | ( | PDEVOBJ | pdevobj, | |
POEMPDEV | pDevOEM, | |||
const RECTL & | rectTarget, | |||
long | lPage, | |||
long | lX, | |||
long | lY, | |||
LPCSTR | lpTitle = NULL | |||
) |
This function writes an unnamed inner-document link box into the PostScript file.
pdevobj | Pointer to the device object representing the PostScript printer | |
pDevOEM | Pointer to the CC PDF Converter render plugin object | |
lpDestination | Name of the link's destination | |
rectTarget | Location of the link's box | |
lpTitle | Title of the location (will be displayed in a tooltip in Acrobat) |
Definition at line 471 of file ddihook.cpp.
References JUMPINTERNAL, JUMPINTERNAL_TITLE, and PrintPS().
Referenced by OEMSendPage().
void PrintJumpDestination | ( | PDEVOBJ | pdevobj, | |
POEMPDEV | pDevOEM, | |||
LPCSTR | lpDestination | |||
) |
This function writes a destination mark into the PostScript file (target for inner-document links).
pdevobj | Pointer to the device object representing the PostScript printer | |
pDevOEM | Pointer to the CC PDF Converter render plugin object | |
lpDestination | Name of the destination (must be NULL terminated) |
Definition at line 487 of file ddihook.cpp.
References JUMPDEST, and PrintPS().
Referenced by DoLicensePage().
void PrintJumpLink | ( | PDEVOBJ | pdevobj, | |
POEMPDEV | pDevOEM, | |||
LPCSTR | lpDestination, | |||
const RECTL & | rectTarget, | |||
LPCSTR | lpTitle = NULL | |||
) |
This function writes an inner-document link box into the PostScript file.
pdevobj | Pointer to the device object representing the PostScript printer | |
pDevOEM | Pointer to the CC PDF Converter render plugin object | |
lpDestination | Name of the link's destination | |
rectTarget | Location of the link's box | |
lpTitle | Title of the location (will be displayed in a tooltip in Acrobat) |
Definition at line 454 of file ddihook.cpp.
References JUMPBOX, and PrintPS().
Referenced by OEMSendPage().
void PrintPS | ( | PDEVOBJ | pdevobj, | |
POEMPDEV | pDevOEM, | |||
LPCSTR | lpText | |||
) |
This function writes text to the PostScript file.
pdevobj | Pointer to the device object representing the PostScript printer | |
pDevOEM | Pointer to the CC PDF Converter render plugin object | |
lpText | The text to write |
Definition at line 403 of file ddihook.cpp.
References _OEMPDEV::pOEMHelp.
Referenced by CenterText(), DoLicensePage(), OEMSendPage(), PrintCircle(), PrintHyperlink(), PrintInternalLink(), PrintJumpDestination(), PrintJumpLink(), and PrintText().
int PrintText | ( | PDEVOBJ | pdevobj, | |
POEMPDEV | pDevOEM, | |||
int | nFontSize, | |||
int | nX, | |||
int | nY, | |||
int | nWidth, | |||
int | nLineHeight, | |||
LPCSTR | lpText, | |||
bool | bCenter = false | |||
) |
This function writes text into the postscript file in a specific location, breaking into lines if necessary.
pdevobj | Pointer to the device object representing the PostScript printer | |
pDevOEM | Pointer to the CC PDF Converter render plugin object | |
nFontSize | Size of the font to write with | |
nX | The X location of the bound box | |
nY | The Y loation of the bound box | |
nWidth | The width of the bound box | |
nLineHeight | Height of each text line | |
lpText | The text to write | |
bCenter | true to center the text, false (default) to align to the left |
Definition at line 590 of file ddihook.cpp.
References _OEMPDEV::pOEMHelp, and PrepareWriteString().
void PrintText | ( | PDEVOBJ | pdevobj, | |
POEMPDEV | pDevOEM, | |||
LPCSTR | lpText | |||
) |
This function writes text into the postscript file (without a specific location).
pdevobj | Pointer to the device object representing the PostScript printer | |
pDevOEM | Pointer to the CC PDF Converter render plugin object | |
lpText | The text to write |
Definition at line 568 of file ddihook.cpp.
References AddPSText(), PrintPS(), PS_JUSTTEXT_END, and PS_JUSTTEXT_START.
Referenced by DoLicensePage().
void PrintURLLink | ( | PDEVOBJ | pdevobj, | |
POEMPDEV | pDevOEM, | |||
LPCSTR | lpURL, | |||
const RECTL & | rectTarget, | |||
LPCSTR | lpTitle = NULL | |||
) |
This function writes a URL link box into the PostScript file.
pdevobj | Pointer to the device object representing the PostScript printer | |
pDevOEM | Pointer to the CC PDF Converter render plugin object | |
lpURL | The target URL (must be NULL terminated) | |
rectTarget | Location of the link's box | |
lpTitle | The tooltip to display when the mouse is over the link (defaults to the destination URL) |
Definition at line 502 of file ddihook.cpp.
References _OEMPDEV::pOEMHelp, and URLBOX.
Referenced by OEMSendPage().