Two Pilots™    Home  |  Navigation  |  Site Map  |  Products  |  Download  |  Prices  |  For Partners  |  Support


All forums · Statistics · Search ·

Two Pilots forum / For software developers / PDFANNOTATION_Caption in Unicode
Author Message
NYR2000
Member
# Posted: 7 May 2008 12:58


Hi everyone, how can I display Cyrillic in PDFANNOTATION_Caption of a checkbox? When I use this method, it returns unrecognized text, like in I.E. when encoding is incorrect.

Vitaliy Shibaev
Member
# Posted: 8 May 2008 00:49


Hi,

Could you please tell me what programming language and PDF Creator build do you use?

Best regards,
Vitaliy Shibaev
Two Pilots

NYR2000
Member
# Posted: 8 May 2008 18:38


VB.Net and dll is Interop.PDFCreatorPilot3Lib.dll

Here is the script that I am using:

PDF.PDFPAGE_CreateControl_Checkbox("chkZavEtap_1", 333, 679, 407, 689)
PDF.PDFANNOTATION_Caption = "тест"

By the way, is there a graphical designer, that then translates what I created into script? I know there is a PDF Maker Pilot, but it only creates PDF files, it does not actually create a VB ( or any other ) script for future use, at least I am not aware of this functionality.

Thank you in advance.

Vitaliy Shibaev
Member
# Posted: 9 May 2008 01:12


Hi,

First please use our last intermediate build from
http://www.colorpilot.com/~vit.shibaev/PDFCreatorP ilot3_9_1444.zip
We guarantee it's work correctly with unicode names of annotations.

And second please use PDFANNOTATION_Charset, i.e:
PDF.PDFANNOTATION_Caption = "тест"
PDF.PDFANNOTATION_Charset = 204 'russian charset

Best regards,
Vitaliy Shibaev
Two Pilots

Vitaliy Shibaev
Member
# Posted: 9 May 2008 01:49


Hi,

About your second questions:
We use such ability (VBScript generation) for our debug needs but it's not included in build for users. We don't plan to produce special product with this ability.

Best regards,
Vitaliy Shibaev
Two Pilots

NYR2000
Member
# Posted: 9 May 2008 11:35


Vitaly,

It didn't seem to work. I used the following script, replaced the dll with the one you mentioned (http://www.colorpilot.com/~vit.shibaev/PDFCreator P ilot3_9_1444.zip), but the result is the same. Instead of тест I have BA5B.

---------------------
Dim PDF As PDFCreatorPilot3Lib.PDFDocument3
PDF = New PDFCreatorPilot3Lib.PDFDocument3
PDF.StartEngine("demo", "demo")
PDF.DocumentInfo_Title = "test"
PDF.FileName = "test.pdf"
PDF.AutoLaunch = True
PDF.BeginDoc()
PDF.PDFPAGE_CreateControl_Checkbox("chk1", 120, 60, 180, 70)
PDF.PDFANNOTATION_Caption = "тест"
PDF.PDFANNOTATION_Charset = PDFCreatorPilot3Lib.TxFontCharset.charsetRUSSIAN_C HARSET
PDF.PDFANNOTATION_Checked = True
PDF.EndDoc()
---------------------

Vitaly, one more question. When I create this checkbox, users can modify it when they open pdf file, they can check or uncheck it. How can I just draw it, so that it's not a control anymore but just a representation of a checkbox ( either checked, or unchecked ).

NYR2000
Member
# Posted: 9 May 2008 11:36


Is it because I am using a demo version?

Vitaliy Shibaev
Member
# Posted: 11 May 2008 04:25


Hi,

No, i think you don't correctly register intermediate build. Could you see version of PDF Creator Library in document description? For correct registration you need to make these steps:

1) Please, remove all version of PDF Creator which are installed in your
system.

2) Go to C:/Windows/system32 and try to found PDFCreatorPilot3.dll. If
found run command "regsvr32 /u PDFCreatorPilot3.dll". Then delete
PDFCreatorPilot3.dll.
* You may also look for PDFCreatorPilot3.dll on all your hard disk.
Delete all such files.

3) Reboot.

4) Register last build (from link written in my
previous letter), regsvr32 PDFCreatorPilot3.dll

Best regards,
Vitaliy Shibaev
Two Pilots

NYR2000
Member
# Posted: 12 May 2008 12:17


Vitaly,

It did change the dll, the version in the file summary is:

Application: PDF Creator Pilot 3.9.1444.0
PDF Version: 1.3

Now, when I am trying to display тест in the checkbox, instead of BA2B it displays ????

All other cyrillic text works perfectly fine ( UnicodeTextBox and other text methods ), only when I am trying to set the annotation for the checkbox.

Here is the script that I am using ( VB.Net 2005 ):
-------------------------------------------------- ---------
Dim PDF As PDFCreatorPilot3Lib.PDFDocument3
PDF = New PDFCreatorPilot3Lib.PDFDocument3
PDF.StartEngine("demo", "demo")
PDF.FileName = "c:test.pdf"
PDF.AutoLaunch = True
PDF.BeginDoc()
PDF.PDFPAGE_SetActiveFont("Arial", True, False, False, False, 10, PDFCreatorPilot3Lib.TxFontCharset.charsetRUSSIAN_C HARSET)
PDF.PDFPAGE_UnicodeTextBox(10, 12, 580, 23, "ТЕСТ ТЕКСТ", PDFCreatorPilot3Lib.TxHorJust.hjCenter, PDFCreatorPilot3Lib.TxVertJust.vjCenter)
PDF.PDFPAGE_CreateControl_Checkbox("chk1", 120, 60, 180, 70)
PDF.PDFANNOTATION_Charset = PDFCreatorPilot3Lib.TxFontCharset.charsetRUSSIAN_C HARSET
PDF.PDFANNOTATION_Caption = "тест"
PDF.PDFANNOTATION_Charset = PDFCreatorPilot3Lib.TxFontCharset.charsetRUSSIAN_C HARSET
PDF.PDFANNOTATION_Checked = True
PDF.EndDoc()
-------------------------------------------------- ---------

Do you want to take a loot at the test.pdf? How can I send it to you if necessary?

Thank you again.

Yan

Vitaliy Shibaev
Member
# Posted: 13 May 2008 02:13


Hi Yan,

Hmm, may be the only reason - it's not fixed in 1444 build. In our current build (1518) it's works correctly, here is the resulted pdf: http://www.colorpilot.com/~vit.shibaev/test.pdf
Yan, I suggest you wait for release (coming soon), I guarantee that it will be fixed there.

Best regards,
Vitaliy Shibaev
Two Pilots

NYR2000
Member
# Posted: 13 May 2008 02:30


Vitaly, thank you, will be expecting for it.
Please reply to this thread, if possible.
Do you have an estimate, approximately? Few days, weeks, months?
Yan

Vitaliy Shibaev
Member
# Posted: 13 May 2008 02:51


Hi Yan,

Ok, I'll inform you when release will be ready.
Approximately - end of May.

Best regards,
Vitaliy Shibaev
Two Pilots

NYR2000
Member
# Posted: 2 Jun 2008 11:12


Hi Vitaly, do you have an estimate?
When do you think you will be able to implement this release with the fix?
Thank you,
Yan

Vitaliy Shibaev
Member
# Posted: 2 Jun 2008 11:47


Hi Yan,

Hope it will be released at the end of this week. I'll inform you as I promised.

Best regards,
Vitaliy Shibaev
Two Pilots

Vitaliy Shibaev
Member
# Posted: 7 Jun 2008 11:20


Hi Yan,

We released PDF Creator Pilot 4 - http://www.colorpilot.com/load/pdflib.msi

PDF Creator Pilot 4.0 introduces new interface IPDFDocument4. New interface is more clean than IPDFDocument3 and
contains methods and properties for reading and modifying PDF files. All existing users should consider using new interface.

Also, PDF Creator Pilot 4.0 introduce minor changes in type library, ProgID, library and dll file names:

1. Type library name changed from PDFCreatorPilot3 to PDFCreatorPilot
2. DLL file name changed from PDFCreatorPilot3.dll to PDFCreatorPilot.dll
3. Library name changed from PDFCreatorPilot3Lib to PDFCreatorPilotLib
4. ProgID name changed from PDFCreatorPilot3 to PDFCreatorPilot

When upgrading from PDF Creator Pilot 3.x to PDF Creator Pilot 4.0 do the following:

1. uninstall previous version of PDF Creator Pilot
2. ensure, that there is no PDFCreatorPilot3.dll files on your computer
3. for each found instance of PDFCreatorPilot3.dll :
* unregister instance found (use "regsvr32 /U PDFCreatorPilot3.dll" for this)
* delete PDFCreatorPilot3.dll
4. if you reference PDFCreatorPilot3.dll in your code then change all referencies to PDFCreatorPilot.dll
5. if you reference PDFCreatorPilot3Lib in your code then change all referencies to PDFCreatorPilotLib
6. change all "PDFCreatorPilot3.PDFDocument3" strings in your code to "PDFCreatorPilot.PDFDocument3"
7. if you reference PDFCreatorPilot3_static.lib in your code then change all referencies to PDFCreatorPilot_static.lib
8. install PDF Creator Pilot 4
9. rebuild your code


Best regards,
Vitaliy Shibaev
Two Pilots

NYR2000
Member
# Posted: 26 Jun 2008 19:30


Vitaly, thank you for this information.
I downloaded and installed v4, it is working, but I still have difficulties with checkboxes and checkbox texts.

I am trying to create a checkbox, I searched through new help files, and found this:
PDF.AddCheckBox(250, 20, 262, 32, "check1")

How can I add text to a check box?
How can this text be in cyrillic?
Can you please send me some samples?
Thanks in advance.
Yan

NYR2000
Member
# Posted: 26 Jun 2008 19:31


I am using VB.Net

mvf
Member
# Posted: 26 Jun 2008 23:00 · Edited by: mvf


Here is an example:
http://www.colorpilot.com/pdfcreatorpilotmanual/IP DFDocument4/AnnotBorderColor.html

--
Max Filimonov

NYR2000
Member
# Posted: 27 Jun 2008 15:11 · Edited by: NYR2000


Vitaly, Max, thank you for your help.
Everything seems to be working correctly.
Yan

mvf
Member
# Posted: 11 Sep 2008 03:41


butidonot, I did not get what samples you do you want?

 

 

Powered by miniBB 2.0 RC7 © 2001-2004 Page creation time (sec.): 0.016

 

Page top