Underline and italic in PDF seems not work

Moderator: Rathinagiri

Italia1
Posts: 60
Joined: Mon Mar 24, 2014 10:55 am
Location: Italia

Re: Underline and italic in PDF seems not work

Post by Italia1 » Wed Apr 16, 2014 5:17 pm

Pablo César wrote:
Italia1 wrote:I remember that Euro is inserted in almost all the fonts in Windows (I remember as update). I try this solution that's it's ok for me:

Code: Select all

SET PRINTDOC ENCODING TO "WinAnsiEncoding"
What I could see for at begining the right command is:

SET HPDFDOC ENCODING TO

This command is for hmg_harupdf and you will find at C:\HMG.3.2\hfcl\Include\hfcl_hmg_hpdf.ch
In your DEMO2 I have no modified your PRG (there's command HPDFDOC). PRINTDOC is for my previews files with my solution for Euro. After I must to modified all sources command PRINT with prefix HPDF... very very long work.
I use the great HMG3.2(stable). Have i nice international HMG to everyone!

User avatar
Pablo César
Posts: 4058
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 177 times

Post by Pablo César » Wed Apr 16, 2014 5:33 pm

Italia1 wrote:I never re-build a lib :oops: I try to put new HMG_HPDF.PRG file in project but
fatal error: hpdfcfg.h: No such file or directory - compilation terminated.
I see... this the tipical problem to previous release which I tried to avoid... but I will explain you. This error happen because you need to copy hfcl_hmg_hpdf.ch in twice place for good building... very strange but is because hfcl folder was created in order to keep separated these libs from hmg libs. Which I considere the same, but probably Rathinagiri shall re-evaluate this question like as is being made with BosTaurus lib. But for now, please take this file hfcl_hmg_hpdf.ch from my hfcl_include.rar attached file and copy in:

C:\HMG.3.2\hfcl\Include
and
C:\HMG.3.2\Include

Duplicity... but at least works for building compiling... :?
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
Pablo César
Posts: 4058
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 177 times

Post by Pablo César » Wed Apr 16, 2014 5:46 pm

Italia1 wrote:In your DEMO2 I have no modified your PRG (there's command HPDFDOC). PRINTDOC is for my previews files with my solution for Euro. After I must to modified all sources command PRINT with prefix HPDF... very very long work.
As a far I know, this command SET HPDFDOC ENCODING TO belongs to hmg_hpdf fro long time at least I know since hmg.3.0.46 version... :?

In demo.prg is also explaining. See HMG_HPDF_Doc.pdf file.

I made in base of my demo2.prg and added:

Code: Select all

Function Main()
SELECT HPDFDOC "sample.pdf" PAPERLENGTH 300 PAPERWIDTH 300 LOG
START HPDFDOC
    START HPDFPAGE
	
	SET HPDFDOC ENCODING TO "WinAnsiEncoding"
	    
		@ 10,20  HPDFPRINT "I want Euro sign here: "+CHR(128)
And worked perfectly. See image below:
Screen.PNG
Screen.PNG (65.58 KiB) Viewed 1078 times
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

Italia1
Posts: 60
Joined: Mon Mar 24, 2014 10:55 am
Location: Italia

Post by Italia1 » Wed Apr 16, 2014 6:01 pm

Pablo César wrote:
Italia1 wrote:In your DEMO2 I have no modified your PRG (there's command HPDFDOC). PRINTDOC is for my previews files with my solution for Euro. After I must to modified all sources command PRINT with prefix HPDF... very very long work.
As a far I know, this command SET HPDFDOC ENCODING TO belongs to hmg_hpdf fro long time at least I know since hmg.3.0.46 version... :?

In demo.prg is also explaining. See HMG_HPDF_Doc.pdf file.
My first approach to THE GREATH HMG, and I look it every day, is the HMG Reference on hmgdoc/data/ and in Print System (on the left) ther's the PRINT command :(
Peraphs I learned from a dated reference :cry: or I look 2 print systems and I preferred the command PRINT and not HPDFPRINT :?

Thanks for explain compiling problem. I have 3.2.0(Stable).

This forum it's great... Grande!

EDIT:
It's correct dear Pablo César: direct put CHR(128) in PRG make € sign. Load from DB no. And I must use my STRAN() solution.
I use the great HMG3.2(stable). Have i nice international HMG to everyone!

User avatar
Pablo César
Posts: 4058
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 177 times

Post by Pablo César » Wed Apr 16, 2014 6:17 pm

Well seems you have all your questions attended were waiting for a bit time.
Italia1 wrote:It's correct dear Pablo César: direct put CHR(128) in PRG make € sign. Load from DB no. And I must use my STRAN() solution.
Ok, I am happy you got it. For DB the only way is translating to UNICODE mode, this is still without natural solution due DBF been written in ANSI mode. This is Harbour, Clipper feature. Who know if Harbour creators could make a new option for UNICODE writing... :roll:
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
Pablo César
Posts: 4058
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 177 times

Post by Pablo César » Fri Apr 18, 2014 1:04 pm

Please note, updated version of HMG_HPdf at: viewtopic.php?p=33662#p33662
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
mustafa
Posts: 593
Joined: Fri Mar 20, 2009 11:38 am
Location: Alicante - Spain
Been thanked: 44 times

Post by mustafa » Sat Apr 19, 2014 9:21 am

Hola amigos:
Les presento un sample con dos alternativas de
impresión PRINT y HPDFPRINT en Pdf

El sample consta de una Empresa ficticia de Transporte
que tiene que generar etiquetas para los bultos que se envian
entre zonas de España,cada Población tiene un Código Postal
que está asociado a cada Ciudad ejemplo 08-Barcelona , 28-Madrid

Por lo Tanto si el origen es Barcelona y el Destino es Madrid, tenemos
que generar una etiqueta que indentifique cada Ciudad entonces seria
08 28 luego tenemos los Servicios que están relacionados con la
rapidez de la entrega ejemplo 01 |<-Normal 24h , 05 |<-Mediodia etc.

Nuestro Nuevo Código de Barras seria :--> 082805 + 7 números aleatorios
un total de 13 números ejemplo:---> 0828052345672 con el programa
HMG_Zebra, generó este código que siempre es igual como la cantidad de
paquetes, coloco los Portes Debidos o Pagados y Datos de Remitente
y Consignatario.

Atención, No es un codigo de Barras tipo EAN , solo es un codigo de Barras
para Paqueteria.

Espero que les pueda servir
Saludos
Mustafa

*--------------------------------------------------------------------*

Hello friends :
I present a sample with two alternative
PRINT and print Pdf HPDFPRINT

The sample consists of a fictitious Transportation Company
you have to generate labels for packages that are sent
between areas of Spain , each population has a Postal Code
that is associated with each 08- city example Barcelona, ??Madrid 28

Whether at the origin destination is Barcelona and Madrid, we have
to generate a label that would then City 's identification of each
08 28, then we have the services that are related to the
speed of delivery example, 01 |<-Normal 24h , 05 |<-Mediodia etc.

Our new Code would Bars : -> 082805 + 7 random numbers
A total of 13 sample numbers --- > 0828052345672 with the program
HMG_Zebra , generating this code is always the same as the amount of
packs , I place the Due and Paid Data Ports or Sender
and Consignee .

Attention, Not a EAN barcode type , it's just a bar code
for Parcel .
I hope I can serve them
regards
Mustafa :D
Attachments
screenshot.jpg
screenshot.jpg (164.1 KiB) Viewed 991 times
Project_PRINT.zip
(561.47 KiB) Downloaded 119 times
Project_HPDFPRINT.zip
(549.71 KiB) Downloaded 233 times
Last edited by mustafa on Sat Apr 19, 2014 12:07 pm, edited 1 time in total.

User avatar
esgici
Posts: 4346
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 234 times
Been thanked: 80 times
Contact:

Post by esgici » Sat Apr 19, 2014 11:16 am

mustafa wrote: Hello friends :
I present a sample with two alternative
PRINT and print Pdf HPDFPRINT
Very nice sample Mustafa,
thanks to share :)

Viva HMG :D
Viva INTERNATIONAL HMG :D

User avatar
mustafa
Posts: 593
Joined: Fri Mar 20, 2009 11:38 am
Location: Alicante - Spain
Been thanked: 44 times

Post by mustafa » Sat Apr 19, 2014 11:46 am

As salamu alaikum Esgici
Thanks friend, I have learned a lot from you
a hug
Mustafa :idea:

User avatar
Pablo César
Posts: 4058
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 177 times

Post by Pablo César » Sat Apr 19, 2014 1:59 pm

Muy bueno tu trabajo, Mustafa. Felicitaciones y gracias por compartir.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

Post Reply