» Archive for March, 2008

Scale PDF disproportionally

Monday, March 31st, 2008 by rubypdf

there is a requirement from Planet Pdf Forum

I have 600 PDFs that need to be scaled 87.5% horizontally and 93% vertically. What Acrobat 8 plug-in or software do I need?

and here is the demo version of the solution, bases on iText, developed in java, so can be run at windows, Linux, FreeBSD and mac OX. it just needs jvm1.4
pdfresize(519K)

How to get IHTMLDocument2 from a HWND

Friday, March 14th, 2008 by rubypdf

Maybe I need it someday, so leave a message here.

SUMMARY
This article shows how to get the IHTMLDocument2 interface from a HWND. If Microsoft Active Accessibility (MSAA) is installed, you can send the WM_HTML_GETOBJECT message to the document’s window (with the window class “Internet Explorer_Server”) and then pass the result from SendMessage to an MSAA function, ObjectFromLresult, to get a fully marshaled IHTMLDocument2 pointer.

Here is VB version
Here is C version

Implement Yahoo DomainKeys on MS Exchange 2003

Thursday, March 13th, 2008 by rubypdf

Today I found some one ask how to implement Yahoo DomainKeys on MS Exchange 2003, and I told him to find answer from her
https://mmmservices.web.cern.ch/mmmservices/Antispam/DomainKeysLibrary.aspx

CERN DomainKeys Library is written in C#, for a Windows usage.
Common task is to integrate this library into Protocol Event Sinks, implementing ISmtpInCommandSink interface, for incoming traffic verification and outgoing traffic signing.
An ISmtpServerResponseSink Sink might also be used for signing outgoing traffic.
It uses a certificate generated by OpenSSL, and imported in LocalMachine certificate store. The public key is extracted using OpenSSL for DNS field.

if you want solution for other smtp server, please follow this link,
http://domainkeys.sourceforge.net/

P.S.
a little knowledge about Yahoo DomainKeys

Introduced by Yahoo! Inc., the idea is to sign and verify mails at gateway level, using a public key found in DNS for verification.
The idea is to verify that the mail really comes from the official server handling this email address, to be sure it is not a forged email.

See http://antispam.yahoo.com/domainkeys for details and specification.