FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Image2Pdf dll
Posts: 72
Joined: Tue Sep 11, 2007 03:51 PM

Image2Pdf dll

Posted: Tue May 15, 2012 02:31 PM

Hola a todos,

A vueltas con las transformacion de wmfs a pdfs...
Estoy probando la version demo Img2Pdf.Dll llamando a las "funciones" de esta dll.

Resulta que un wmf me lo transforma a mi bien y mal en la ofi del cliente; cuando digo mal me refiero a que le cambia el font, y saca un font que saca muy pegadas las letras...

¿ Puede ser que tenga que utilizar la funcion I2PDF_MetaDefaultFont() ?

Vosotros, qué pensais ? ¿ A alguien le ha pasado ?

Saludos

Posts: 282
Joined: Mon Oct 10, 2005 08:55 AM

Re: Image2Pdf dll

Posted: Tue May 15, 2012 04:33 PM

Con esta configuración no he tenido problemas nunca hasta ahora.

-UseActualImageDPI
-UseEMFDeviceSize

saludos :shock:

Posts: 72
Joined: Tue Sep 11, 2007 03:51 PM

Re: Image2Pdf dll

Posted: Tue May 15, 2012 05:01 PM

José Vicente,

Gracias por responder.

El problema que tengo, es en la ofi del cliente, a mi si me sale bien, y es que el wmf se transforma con un font que pega mucho las letras unas con otras. De las dos cosas que me sugieres la que parece que puede tener algo que ver es UseActualImageDPI, pero creo que no, porque ya te digo pareciera cosa del font;

He probado con I2PDF_MetaBitmapForcedFontQuality(), I2PDF_MetaDefaultFont() y nada.

Mira lo que dice la ayuda de la funcion I2PDF_MetaBitmapForcedFontQuality():

""This API can only be used if the I2PDF_MetaToNativePDF API has NOT been used as it controls the font quality when rendering the meta image file into a bitmap.
[u:1gk4k9n8]There are instances where the font records stored in a meta image file may specify either a default setting which is dependent on the PC being used or a setting that is not desired. This API allows the font quality to be set to a known value.[/u:1gk4k9n8]
Depending on your requirements you may want to use NonAntiAliased (when you want to ensure that the text pixels are either on or off only and not an interpolated color), AntiAliased (to make the text look smoother without adding any non-font color) or ClearType (which creates better looking text but does add colored pixels in - note that this may not always be available on a PC - it depends on which version of Windows is being used and how it may have been configured). ""

Pareciera que cuando el metafile (el .wmf) no contiene ningun font explicitamente, entonces coge del PC... quizá pueda venir por aquí el problema... pero tampoco me han funcionado I2PDF_MetaBitmapForcedFontQuality() ni I2PDF_MetaDefaultFont().

¿ Se te ocurre a ti algo ?

Gracias y saludos

Continue the discussion