Contentserv PHP API

CSFopUtils
in package

Collection of various convenience methods around the transformation of xsl:fo to pdf and other formats

This class offers a set of methods that will be helpful to transform xsl:fo files or streams to pdf files

Tags
since

CS12.0

Table of Contents

file2pdf()  : string
This function transforms an xsl:fo formatted xml file to a PDF
fo2pdf()  : string
This function transforms an xsl:fo formatted xml stream to a PDF

Methods

file2pdf()

This function transforms an xsl:fo formatted xml file to a PDF

public static file2pdf(string $file) : string
Parameters
$file : string

the file with xml:fo content to be transformed

Tags
access

public

Return values
string

the resulting pdf file path

fo2pdf()

This function transforms an xsl:fo formatted xml stream to a PDF

public static fo2pdf(string $xml) : string
Parameters
$xml : string

the xml:fo formatted content to be transformed

Tags
access

public

Return values
string

the resulting pdf file path


        

Search results