How to use a different watermark font?

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-Tools SDK of Library DLL functions(only) - Please use the PDF-XChange Drivers API SDK Forum for assistance with all PDF Print Driver related topics.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software, Andrew - Tracker Support, Tracker - Clarion Support, John - Tracker Supp, Support Staff, moderators

Post Reply
User avatar
jtbworld
User
Posts: 15
Joined: Tue Dec 13, 2005 8:49 pm
Location: Sweden
Contact:

How to use a different watermark font?

Post by jtbworld » Thu Dec 15, 2005 4:06 am

I can replicate the problem using C:\Program Files\Tracker Software\PDF-XChange PRO 3 SDK\Examples\Bin\XcPro35DemoVBnet.exe
I add a watermark and selects a font. No matter what font is selected it just becomes the same in the PDF.
Using VB.NET and the code below doesn't work either:
XCPro35_Defs.StringToShortArr(m_FontNames(2), theWatermark.m_FontName)
from
C:\Program Files\Tracker Software\PDF-XChange PRO 3 SDK\Examples\SDKExamples.35\VBNetExamples\XcPro35Demo
I'm using the latest available version.

What is wrong here?

If I want to use another font. Let's say Garamond. What should be used as font name? GARAMOND, Garamond (TrueType), GARA, GARA.TTF or ...?

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Thu Dec 15, 2005 4:14 pm

Hi,

in the example given for the required font name, 'GARAMOND' would indeed be correct.

Please send a small sample app as changed by you along with any required supporting dll's and supply the PDF created - please zip all files sent.

thanks
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Thu Dec 15, 2005 5:24 pm

Had the demo app checked and indeed there was an error - please find revised demo attached.

Hope it helps.
Attachments
XcPro35Demo.zip
Revised demo
(179.19 KiB) Downloaded 123 times
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

User avatar
jtbworld
User
Posts: 15
Joined: Tue Dec 13, 2005 8:49 pm
Location: Sweden
Contact:

Post by jtbworld » Thu Dec 15, 2005 5:57 pm

I tried the updated XcPro35DemoVBnet.exe but still the fonts doesn't change. Did you try a couple of different fonts to see if it worked?

User avatar
jtbworld
User
Posts: 15
Joined: Tue Dec 13, 2005 8:49 pm
Location: Sweden
Contact:

Post by jtbworld » Thu Dec 15, 2005 6:05 pm

It seems like the only thing changed was:
Private m_FontNames() As String = { _
"Courier New", "Courier New Bold", "Courier New Italic", "Courier New BoldItalic", _
"Helvetica", "Helvetica Bold", "Helvetica Italic", "Helvetica BoldItalic", _
"Times New Roman", "Times New Roman Bold", "Times New Roman Italic", "Times New Roman BoldItalic", _
"Symbol", "Zapfdingbats"}

But that doesn't help. Still no go.

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Fri Dec 16, 2005 11:05 am

Hi,

Please see attached example revised specifically for Garamond text watermark addition ('HHHHH' text top left) and sample PDF generated.
Attachments
GaraMondWM.zip
Sample app and PDF
(215.93 KiB) Downloaded 129 times
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

User avatar
jtbworld
User
Posts: 15
Joined: Tue Dec 13, 2005 8:49 pm
Location: Sweden
Contact:

Post by jtbworld » Fri Dec 16, 2005 8:06 pm

I got it working now. Thanks!

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Sat Dec 17, 2005 9:18 am

Excellent - thanks :)
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

Post Reply