Resource type: pdf
Herewith PDF-Exposés can be generated.
Parameters:
estateid
Record ID of the linked estateaddressids
Record IDs of the linked addresseslanguage
Languagetemplate
Name of the templategzcompress
Compresses the returned data (possible values:true
orfalse
, default value:true
).forceEstateLocation
Forces the output of street and house number in the Exposé (possible values:true
orfalse
, default value:false
). If this parameter is set tofalse
or is not specified, then the street and house number in the exposé will be based on the “Portale / Website / API” setting on the “Marketing” tab of an estate. For individual exposés from the PDFdesigner the PDFDesigner also has the setting “Straße/Hausnr. anzeigen” for the title page of an exposé with the optionsnie
,wenn im Objekt freigegeben
andimmer
.
See the onOffice online help for more information about the PDFdesigner. With the PDFdesigner you can individually create and edit your own PDF exposés.
Example: Generation of a PDF-Exposé
{ "actionid":"urn:onoffice-de-ns:smart:2.5:smartml:action:get", "resourceid":"", "identifier":"", "resourcetype":"pdf", "parameters":{ "estateid":6, "template":"urn:onoffice-de-ns:smart:2.5:pdf:expose:kurz:design02Expose", "forceEstateLocation":"true" } }
Response:
type
Typedocument
base64-encoded binary data
The generated PDF document is compressed and delivered base64-encoded. The delivered data must still be processed as follows:
$binary = gzuncompress(base64_decode($data));
Is gzcompress
set to false
, i.e. the PDF document was not compressed,
$binary = base64_decode($data)
$data
is the parameter document
from the response.