Conversion SDK v11 32-bit and 64-bit

Similar documents
Using save Outside the Server Loop

Acrobat Widths-Only CIDFont Tutorial ADOBE SYSTEMS INCORPORATED

Simple Text Setting Calculations for PostScript Language Drivers

Supporting Level 2 Functionality

Expression Design Lab Exercises

Scalable Vector Graphics (SVG) vector image World Wide Web Consortium (W3C) defined with XML searched indexed scripted compressed Mozilla Firefox

Informatik Image Markup

Foreword 0. 1 Install... Template File 2 Create... Single Barcode. 2 Create... Multiple Barcodes. 1 Change... Settings

Level 2 Compatibility: The setscreen and currentscreen Operators

Schlumberger Private Customer Use

Adobe EXAM - 9A Adobe InDesign CS5 ACE Exam. Buy Full Product.

Table of Contents. Part I Introduction 3 Part II Installation 3. Part III How to Distribute It? 3 Part IV Office 2007 &

The StemSnap Hint Operator for Type 1 Font Programs

(SSOL) Simple Shape Oriented Language

User s Guide to Creating PDFs for the Sony Reader

XDesign Version User Guide

BlueViewer Software Handbook

Schlumberger Private Customer Use

Photofont Start 2.0. for Macintosh and Windows. User Manual

Foreword 0. GetActualSize... Method GetPatternData... Method. SaveAsMemory... Method. Orientation Enumeration

How to draw and create shapes

SDK White Paper. Occlusion Query Checking for Hidden Pixels

DinoCapture Additional Software Instructions for Measurement models

Ai Adobe. Illustrator. Creative Cloud Beginner

Computer Aided Design

AMD Radeon ProRender plug-in for Unreal Engine. Installation Guide

A QUICK TOUR OF ADOBE ILLUSTRATOR CC (2018 RELEASE)

User s Manual for H4S & NetPoint 2.2

SUNDE. User s Manual for NetPoint2.2 & H4S USER MANUAL FOR NETPOINT2.2 AND H4S 1

The Adobe-CNS1-6 Character Collection

MIMAKI ENGINEERING CO., LTD.

c-systems Software, Inc. to KubotaLink Interface

ConnectingOntario Clinical Viewer

How to...create a Video VBOX Gauge in Inkscape. So you want to create your own gauge? How about a transparent background for those text elements?

Microsoft Dynamics GP. Purchase Vouchers

LogiCORE IP Image Noise Reduction v2.0 Bit Accurate C Model

Exam : 9A Title : Adobe InDesign CS5 ACE Exam. Version : Demo

FontLab. TECHNICAL NOTE #002 (Mac) Keyboard shortcuts. Copyright 2001 FontLab Ltd. THE DIGITAL TYPE DESIGN TOOLKIT

idesign Version User Guide

Recording Output Intentions for Color Critical Workflows ADOBE SYSTEMS INCORPORATED

EXAMINATIONS 2016 TRIMESTER 2

Perceptive Document Composition

1 Getting started with Processing

Computer-Aided Design

Investintech.com Inc. Software Development Kit: ImagetoPDF Function Library User s Guide

March 2006, rev 1.3. User manual

Software License Agreement

Microsoft Dynamics GP. Inventory Kardex

Investintech.com Inc. Software Development Kit: PDFtoXML Function Library User s Guide

LogiCORE IP 3GPP LTE Turbo Encoder v1.0 Bit-Accurate C Model. 3GPP LTE Turbo. [optional] UG490 (v1.0) April 25, 2008 [optional]

Solid State Graphics (SSG) SDK Setup and Raw Video Player Guide

ASSIGNMENT 2. COMP-202A, Fall 2013, All Sections. Due: October 20 th, 2013 (23:59)

Amyuni PDF Converter. User s Manual Updated September 26, 2005

Adobe Illustrator. Always NAME your project file. It should be specific to you and the project you are working on.

QuickTutor. An Introductory SilverScreen Modeling Tutorial. Solid Modeler

FactoryLink 7. Version 7.0. Client Builder Reference Manual

User Guide. TexturePerformancePBO Demo

Display PostScript System

Map Editor Release Notes December, 2010 EN V (1) Innovative Solutions

Adobe Photoshop Sh S.K. Sublania and Sh. Naresh Chand

CISC 1600, Lab 3.1: Processing

INKSCAPE BASICS. 125 S. Prospect Avenue, Elmhurst, IL (630) elmhurstpubliclibrary.org. Create, Make, and Build

XD++ Professional Edition -- it is designed for building professional flow diagramming applications only.

Exam : 9A Title : Adobe IIIustrator CS4 Exam. Version : Demo

MindManager Browser Application Release Notes

x10data Smart Client 7.0 for Windows Mobile Installation Guide

MindManager Reader Release Notes

AMD Radeon ProRender plug-in for Universal Scene Description. Installation Guide

Area. Domain 4 Lesson 25. Getting the Idea

CID-Keyed Font Technology Overview

x10data Smart Client 6.5 for Windows Mobile Installation Guide

idesign Version User Guide

EDITING SHAPES. Lesson overview

Informatik Reformat. Version User Guide. 02 November 2015

Orbix 3.0 for Windows Installation Guide

Investintech.com Inc. Software Development Kit: PDF-to-HTML Function Library User s Guide

It's a cross-platform vector graphics package written in JavaScript. Frequently referenced as dojox.gfx or dojo.gfx. Supported backends:

GateManager 5 Customer and License Administration

User Manual. pdoc Forms Designer. Version 3.7 Last Update: May 25, Copyright 2018 Topaz Systems Inc. All rights reserved.

Intel NAS Performance Toolkit. Creating Custom Workloads

Input CAD Solid Model Assemblies - Split into separate Part Files. DXF, IGES WMF, EMF STL, VDA, Rhino Parasolid, ACIS

ArduCAM USB Camera SDK

D-Cut Master MANUAL NO. OPS639-UM-153 USER'S MANUAL

creating files and saving for web

Investintech.com Inc. Software Development Kit: PDFtoImage Function Library User s Guide

Computer Graphics. - Rasterization - Philipp Slusallek

Creating Interactive PDF Forms

2017 WorkPlace Mobile Application

DinoCapture Additional Software Instructions

Navigational Data Tools. Reference Guide

TIBCO Spotfire Automation Services

OptimiData. JPEG2000 Software Development Kit for C/C++ Reference Manual. Version 1.6. from

Web Design for Developers A Programmer s Guide to Design Tools and Techniques

Oracle Fusion Middleware

Software License Agreement

Adding Objects Creating Shapes Adding. Text Printing and Exporting Getting Started Creating a. Creating Shapes Adding Text Printing and Exporting

ITP 101 Project 2 - Photoshop

Java How to Program, 9/e. Copyright by Pearson Education, Inc. All Rights Reserved.

HTMLDOC On Line Help

ENVI Tutorial: Introduction to ENVI

Transcription:

Conversion SDK v11 32-bit and 64-bit API Reference PDF SDK for Developers Copyright 1995-2016 Visual Integrity LLC/Square One bv. All rights reserved. NOTICE: All information contained herein is the property of Square One bv. No part of this publication (whether in hardcopy or electronic form) may be reproduced or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written consent of Square One bv. The Graphics Connection is a trademark of Square One bv. PostScript and PDF is a registered trademark of Adobe Systems Incorporated. All other trademarks are the property of their respective owners. This publication and the information herein is furnished AS IS, is subject to change without notice, and should not be construed as a commitment by Square One bv. Square One bv assumes no responsibility or liability for any errors or inaccuracies, makes no warranty of any kind (express, implied, or statutory) with respect to this publication, and expressly disclaims any and all warranties of merchantability, fitness for particular purposes, and non-infringement of third party rights. Version 11 Square One bv 1995-2016

1. Getting Started Thank you for purchasing the 32-bit and 64-bit Conversion SDK Developers Kit. With it, you ll have the power and flexibility you need to create/edit PDF files. To get started, you should have: Conversion SDK Developers Kit (either downloaded via FTP or on CD ROM) License Agreement License Key It s a good idea to review the Conversion SDK API PDF Reference manual thoroughly before starting. You should be familiar with all appropriate functions and parameters before beginning to use this Developers Kit. Support is at hand If you have questions or need help using The Conversion SDK Developers Kit, please contact us during Central European business hours (8:30am 6:00pm). Our contact information is: Square One bv Oosteinde 34 2361HE Warmond The Netherlands +31 71 362 7297 +31 71 890 0567 support@visual-integrity.com www.visual-integrity.com

2. The Conversion SDK API PDF functions In this section, you will find a description of all the functions of the API (Application Programming Interface) of the Conversion SDK PDF. The file vgpsflow.h is included in the developers kit. Conversion SDK also contains demo source programs which demonstrates most of the API functions. See the vcexdlg.cpp file in Visual Studio 2010 C++ PDF engine Example directory. Vg2Pdf_CreateFile Vg2Pdf_CreateFile(void **pdf, char *filename, int pdfversion) Vg2Pdf_CreateFile creates a PDF-file. Using the pdf pointer the contents of the PDF-file can be rendered using the API functions below. Parameters pdf Handle to the PDF data of the PDF file filename pdfversion The name of the PDF file Options are PDF15, PDFA1A and PDFA1B Zero if PDF file is created. Version number of the PDF-file is 1.5 Vg2Pdf_CloseFile Vg2Pdf_CloseFile(void *pdf); Vg2Pdf_CloseFile saves and closes the PDF file.

Vg2Pdf_CreateLayer Vg2Pdf_CreateLayer(void **layer, void *pdf, char *layername, int onoff) Vg2PDF_CreateLayer creates a new PDF layer with layername. Visibility of the new layer can be set on or off. Parameters layer Handle to the PDF layer data pdf layername onoff Pointer to the PDF data The name of the layer Set visibility of layer on or off Returns zero if layer has been created All layers should be created right after the Vg2Pdf_CreateFile call. Vg2Pdf_BeginPage Vg2Pdf_BeginPage(void *pdf, double w, double h) Vg2PDf_BeginPage creates a new PDF page. w, h Width and height of page size in PDF units (1/72 inch) Vg2Pdf_EndPage Vg2Pdf_BeginPage(void *pdf) Vg2PDf_EndPage closes the PDF page.

Vg2Pdf_OpenLayer Vg2Pdf_OpenLayer(void *pdf, void *layerid) Vg2PDf_OpenLayer makes the layer with layerid the current layer. layerid Pointer of the layer (See Vg2Pdf_CreateLayer) Vg2Pdf_CloseLayer Vg2Pdf_CloseLayer(void *pdf, void *layerid) Vg2PDf_CloseLayer closes the layer. layerid Pointer of the layer (See Vg2Pdf_CreateLayer)

Below the API functions to add (=render) objects (=contents) to a PDF page. The current page is the page created with Vg2Pdf_BeginPage. The origin (0,0) of a PDF page is in the lower left corner. Units are in PDF units (1/72 inch). API functions to set stroke, fill or text color. Vg2Pdf_SetStrokeColor Vg2Pdf_SetStrokeColor(void *pdf, unsigned char r, g, b) Vg2PDf_SetStrokeColor sets the stroke (=outline) color of the new vector object to the specified RGB color. r,g,b R, G and B value (0 255) Vg2Pdf_SetFillColor Vg2Pdf_SetFillColor(void *pdf, unsigned char r, g, b) Vg2PDf_SetFillColor sets the fill color of a new vector object to the specified RGB color. r,g,b R, G and B value (0 255) The functions Vg2Pdf_NoStroke andvg2pdf_nofill sets the stroke or fill to transparent. Vg2Pdf_SetTextColor Vg2Pdf_SetTextColor(void *pdf, unsigned char r, g, b) Vg2PDf_SetTextColor sets the fill color of a new text object to the specified RGB color. r,g,b R, G and B value (0 255)

API functions to set the line width, style and cap, join options. Vg2Pdf_SetDash Vg2Pdf_SetDash (void *pdf, int dashid) Vg2PDf_SetDashId sets line style of the stroke (=outline) of a new vector object. dashid See defines in vgpsflow.h Vg2Pdf_SetLineCap Vg2Pdf_SetLineCap (void *pdf, int capid) Vg2PDf_SetLineCap sets line end of the stroke (=outline) of a new vector object. capid BUTT = 0; ROUND = 1; SQUARE = 2 Vg2Pdf_SetLineJoin Vg2Pdf_SetLineJoin (void *pdf, int joinid) Vg2PDf_SetLineJoin sets line join of the stroke (=outline) of a new vector object. joinid ROUND = 0; BEVEL= 1; MITER = 2 Vg2Pdf_SetLineWidth Vg2Pdf_SetLineWidth (void *pdf, double lw) Vg2PDf_SetLineWidth sets line width in mm of the stroke (=outline) of a new vector object. lw line width in mm

API functions to render (=add) objects. The objects are rendered using the current color settings. Vg2Pdf_DrawLine Vg2Pdf_DrawLine(void *pdf, CuPoint *pt1, *pt2) Vg2PDf_DrawLine renders (=add) a line to the PDF page. pt1, pt2 Pointers to x,y coordinates of begin and end point in PDF units (1/72 inch) Vg2Pdf_DrawPoly Vg2Pdf_DrawPoly(void *pdf, CU_IRPOLY_PARAM *cupoly, int close) Vg2PDf_DrawPoly renders (=add) a polyline or polygon to the PDF page. cupoly Array of points close If close poly will be closed (= polygon) Vg2Pdf_DrawRect Vg2Pdf_DrawRect(void *pdf, CuPoint *pt1, *pt2) Vg2PDf_DrawRect renders (=add) a rectangle to the P the PDF page. pt1, pt2 Pointers to x,y coordinates of lower left and upper right Vg2Pdf_DrawCircle Vg2Pdf_DrawCircle(void *pdf, CU_CIRCLE_PARAM *cucircle) Vg2PDf_DrawCircle renders (=add) a circle to the P the PDF page. cucircle pointer to circle data, middle point and radius

Vg2Pdf_DrawEllipse Vg2Pdf_DrawEllipse(void *pdf, CU_ELLIPSE_PARAM *cuellipse) Vg2PDf_DrawEllipse renders (=add) an ellipse to the PDF page. cuellipse Pointer to ellipse data, middle point, a and b axis Vg2Pdf_DrawPath Vg2Pdf_DrawPath(void *pdf, CuPathDef *p) Vg2PDf_DrawPath renders (=add) a set of Bezier paths to the PDF page. p Pointer to the Bezier paths (see custom.h) Vg2Pdf_DrawJpgImage Vg2Pdf_DrawJpgImage(void *pdf, char *jpgname, double *pts) Vg2PDf_ DrawJpgImage renders (=add) a JPEG file as image object to the PDF page. jpgname Name of the JPEG file pts 6 points of the parallelogram of the image object Returns zero if succeeds. Vg2Pdf_DrawImage Vg2Pdf_DrawImage(void *pdf, int depth, w, h, char *imdata, int imlength, double *pts) Vg2PDf_ DrawImage renders (=add) an image object to the PDF page. depth Color Depth of image w, h width and height of image in pixels imdata image data (= pixel values) imlength length in bytes of image data (no padding) Returns zero if succeeds.

API functions to add links or tooltips to a PDF page. Vg2Pdf_CreateLink Vg2Pdf_CreateLink(void *pdf, int onpage, double *bbox, double bwidth, int bstyle, double yloc) Vg2PDf_CreateLink adds a link from a page to another page in the PDF file onpage from page onpage bbox bounding box of the clickable link bwidth line width of the bounding box bstyle style of the bounding box topage page to go to when clicked yloc y value of the topage to show in the top area Returns zero if succeeds. Vg2Pdf_CreateURLLink Vg2Pdf_CreateURLLink(void *pdf, int onpage, double *bbox, double bwidth, int bstyle, char *url) Vg2PDf_CreateURLLink adds a link from a page to a web-site (=url) onpage from page onpage bbox bounding box of the clickable link bwidth line width of the bounding box bstyle style of the bounding box url url to a web-site Returns zero if succeeds. Vg2Pdf_CreateToolTip Vg2Pdf_CreateToolTip(void *pdf, int onpage, double *bbox, char *dname, char *tooltip) Vg2PDf_CreateLink adds a link from with a page to another page. onpage from page onpage bbox bounding box of the tooltip area dname name (= title) of tooltip tooltip string (= contents) of tooltip Returns zero if succeeds.

3. Additional Functionality 3a. API functions to add objects (= contents) on a page of an existing PDF-file Vg2Pdf_Append2Page Vg2Pdf_Append2Page(void *pdf, int pageno) Vg2PDf_Append2Page sets the page with pageno as the current page in the PDF-file. pageno Page number to which append objects (First page is 1) Returns zero if page with pageno exist. Call Vg2Pdf_EndPage when done. 3b. API functions to add a page to an existing PDF-file Vg2Pdf_InsertAndBeginPage Vg2Pdf_InsertAndBeginPage(void *pdf, int where, double w, double h) Vg2Pdf_InsertAndBeginPage creates a new page an inserts it before the page where. The new page becomes the current page to which objects can be added where New page will be added before where (First page is 1) w, h Width and height of page size in PDF units (1/72 inch) Returns zero if page can be added. Call Vg2Pdf_EndPage when done.

3c. API function to convert a WMF file to PDF VgConvertWmf2Pdf VgConvertWmf2Pdf(char *in, char *out) VgConvertWmf2Pdf converts the WMF-file in to PDF-file out. Parameters in Name of WMF-file out Name of PDF-file Returns zero if conversion succeeds. 3d. API function to convert a EMF file to PDF VgConvertEmf2Pdf VgConvertEmf2Pdf(char *in, char *out) VgConvertEmf2Pdf converts the EMF-file in to PDF-file out. Parameters in Name of EMF-file out Name of PDF-file Returns zero if conversion succeeds. 3d. API function to merge 2 PDF-files Vg2Pdf_Append2Pdf Vg2Pdf_Append2Pdf(char *infile, char *appendfile) Vg2Pdf_Append2Pdf merges 2 PDF files. Parameters infile Name of PDF-file to which the other PDF file will be appended appendfile Name of PDF-file which will be appended to the infile Returns zero if conversion succeeds.

3e. API function to extract the object calls from a page VgPdfExtractPageData VgPdfExtractPageData(char *infile, int pageno, char *outfile) VgPdfExtractPageData extracts the object data (= contents) of the page pageno of the PDF-file infile and saves it to the OutFile. Parameters infile Name of PDF-file pageno Page number outfile Name of the file to store the contents of the page Returns zero if extracting of the contents succeeds.

4. Visual Studio 2010 C++ Example In sub-directories Visual Studio 2010 C++ PDF engine Example and Visual Studio 2010 C++ Meta2PDF Example you will find demo source code which demonstrates how to use the Conversion SDK API PDF.The demo program is created using Visual Studio 2010. You can use these projects as a start for your own application or just copy/paste the code you want to reuse. The function calls to the Conversion SDK PDF kit are very simple! Just have a look at the vcexdlg.cpp source file. After compiling the example the executable vcpdfexample.exe/vcmeta2pdfexample is copied to the bin/win32 or bin/x64 sub directory. You can run it from within this sub directory. 4. Running your own program In order to run your program using the Conversion SDK libraries you need to add the following files/directories into the same directory as your program: Vgflow.dll Vgpsflow.dll Fonts directory