FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour ACTIVEX PDF y fusi贸n de datos usando PDFTK.EXE
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
ACTIVEX PDF y fusi贸n de datos usando PDFTK.EXE
Posted: Mon Aug 15, 2011 03:14 PM

ACTIVEX PDF y fusi贸n de datos usando PDFTK.EXE

Buenos d铆as,

驴C贸mo puedo transformar mis archivos XML a PDF utilizando PDFTK.exe?

Yo tengo varios archivos XML y no se puede convertir a PDF.

gracias

Link del assunto:

viewtopic.php?f=6t=4897start=30#p111614

Saludos

&&

Jo茫o Santos - S茫o Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 883
Joined: Thu Dec 24, 2009 12:46 AM
Re: ACTIVEX PDF y fusi贸n de datos usando PDFTK.EXE
Posted: Fri Aug 19, 2011 01:29 AM
Karinha,

From http://www.pdf995.com/faq_dev.html read the following:
What is the easiest way to convert XML to formatted PDF?
OmniFormat will convert XML to PDF using a DOC file as a layout template. It may be run from the command line. It is free and may be downloaded from http://www.omniformat.com .

I have not tested it but it may be what you need....

XML Conversion
OmniFormat may be used to dynamically convert XML data to any output format supported by OmniFormat including PDF. A Microsoft Word file is used as a template to supply layout information. OmniFormat replaces fields in the Word template with values specified in the XML file. Next it converts the document to the final format.

Sample (acme.xml):

<ORDER
OutputFile="c:\invoices\acme corporation.pdf"
WordTemplate="c:\templates\invoice template.doc"
CompanyName="Acme Corporation Inc."
Address1="345 Garden Avenue"
Address2="San Gorge, CA 94301"
Item1="Widgets"
Quantity1="2"
Price1="500"
Item2=""
Quantity2=""
Price2=""
Total="500"
/>

OmniFormat will process acme.xml by
1. Substitution of the name-value pairs into "c:\templates\invoice template.doc" followed by
2. Conversion to c:\invoices\acme corporation.pdf. The template file is not modified by the process. "OutputFile" and "WordTemplate" are reserved names.

Note: PdfEdit995 may be used to batch convert Microsoft Office documents to PDF.

=====>

Bayron Landaverry
xBasePHP.com
(215)2226600 Philadelphia,PA, USA
MayaBuilders@gMail.com
Guatemala

FWH25.06--Harbour 3.0.0--BCC7.7--UEstudio 10.10
Windows 10

FiveWin, One line of code and it's done...

Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: ACTIVEX PDF y fusi贸n de datos usando PDFTK.EXE
Posted: Fri Aug 19, 2011 01:01 PM

Thanks Bayron, I'll try. hugs

Jo茫o Santos - S茫o Paulo - Brasil - Phone: +55(11)95150-7341

Continue the discussion