ActiveState Community

Language type library

Posted by yuv on 2009-07-28 07:51

Hello,

I'd like to use ActivePython's IActiveScript interface to run scripts with the same capabilites (as much as possible)as I can with VBScript. I am using some open source code that implemtns the editor, with syntax highlighting, but the thing is that it searches for a typelib to get the language keywords and functions from, to put the correct color for the different expressions- just the same as done in VBScript (the vbscript.dll contains the typelib for the language).

Can someone please help on this one? is there any implementation of the typelib that can be used? Any other idea?

TIA !

Yuv

mymail | Tue, 2009-07-28 11:21

$s2->new_outline('Title' => 'Subsection 1');
$page->stringc($f2, 40, 306, 426, "HP Compaq DC5800 Microtower");
$page->stringc($f1, 20, 306, 396, "Thank you from the sales team at atacom");
$page->stringc($f1, 20, 300, 300, "test to see if I get more text");

This is the code that I have to do muti line but it overlaps each other.
Line 2 and 3 overlap. what am i doing wrong?

troyt | Thu, 2009-08-20 13:54

Just following up on some unanswered questions.

The reason this hasn't gotten a response is because it's in the ActivePython forum. I'd shunt you over to the ActivePerl forum for this, but there's still not enough context.

A little Googling reveals that you're actually asking a question about the behavior of PDF::Create, not ActivePerl. You could ask this question in the ActivePerl discussion forum with a subject like "Problems with string positioning using PDF::Create", but you might have more luck posting it somewhere like Perl Monks where it might reach a wider audience.

FWIW, I think you've just got the x and y coordinates of the "test" string wrong. Try this:

$s2->new_outline('Title' => 'Subsection 1');
$page->stringc($f2, 40, 306, 426, "HP Compaq DC5800 Microtower");
$page->stringc($f1, 20, 306, 396, "Thank you from the sales team at atacom");
$page->stringc($f1, 20, 306, 366, "test to see if I get more text");

I think your previous position was colliding with this line a little further down in the PDF::Create example:

# Add something to the first page
    $page->stringc($f1, 20, 306, 300,
                   'by Fabien Tassin ');