Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SFPF] Add new object type SFPF #567

Merged
merged 43 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
1daa7e3
Add AFF Type SFPF
Bomberus Nov 8, 2023
a5bbff8
[SFPF] Data Type fix
Bomberus Nov 9, 2023
ebf9e26
Update zif_aff_sfpf_v1.intf.abap
Bomberus Nov 9, 2023
29cbb05
Update zif_aff_sfpf_v1.intf.abap
Bomberus Nov 9, 2023
e90d796
Fix example
Bomberus Nov 9, 2023
d29b78f
Update z_aff_example_sfpf.sfpf.json
Bomberus Nov 9, 2023
614108a
Update z_aff_example_sfpf.sfpf.json
Bomberus Nov 9, 2023
a168708
Merge branch 'main' into main
schneidermic0 Nov 10, 2023
a75bce3
Merge branch 'main' into main
schneidermic0 Nov 21, 2023
88cde14
Add files via upload
Bomberus Nov 28, 2023
06fa1d3
Update z_aff_example_sfpf.sfpf.json
Bomberus Nov 28, 2023
91ea513
Add files via upload
Bomberus Nov 28, 2023
7b4c82c
Update file-formats/sfpf/type/zif_aff_sfpf_v1.intf.abap
Bomberus Nov 28, 2023
23c734d
Update zif_aff_sfpf_v1.intf.abap
Bomberus Nov 28, 2023
8ba4942
Update file-formats/sfpf/type/zif_aff_sfpf_v1.intf.abap
Bomberus Nov 28, 2023
3e7bf5f
Update zif_aff_sfpf_v1.intf.abap
Bomberus Nov 28, 2023
4a843e3
Update zif_aff_sfpf_v1.intf.abap
Bomberus Nov 28, 2023
72f9f26
Update z_aff_example_sfpf.sfpf.json
Bomberus Nov 28, 2023
9ad7b92
Update sfpf-v1.json
Bomberus Nov 28, 2023
204318b
Update zif_aff_sfpf_v1.intf.abap
Bomberus Nov 28, 2023
1ca98be
Add files via upload
Bomberus Nov 28, 2023
cb1ffdd
Add files via upload
Bomberus Dec 1, 2023
89ef822
Add files via upload
Bomberus Dec 1, 2023
860ccdf
Update z_aff_example_sfpf.sfpf.json
Bomberus Dec 1, 2023
b3b9ff1
Update README.md
Bomberus Dec 1, 2023
7f62c62
Update README.md
Bomberus Dec 1, 2023
8873569
Add files via upload
Bomberus Dec 6, 2023
d3b92c5
Add files via upload
Bomberus Dec 6, 2023
41596f9
Update z_aff_example_sfpf.sfpf.json
Bomberus Dec 6, 2023
f61fcee
Merge branch 'main' into main
albertmink Dec 7, 2023
448d953
Merge branch 'main' into main
albertmink Dec 12, 2023
0b6999d
Merge branch 'main' into main
albertmink Dec 13, 2023
501e8ef
Merge branch 'main' into main
schneidermic0 Dec 22, 2023
a0ba176
Merge branch 'main' into main
schneidermic0 Jan 9, 2024
7286679
Merge branch 'main' into main
schneidermic0 Feb 2, 2024
8abd1d0
Merge branch 'main' into main
schneidermic0 Mar 1, 2024
6e9e7d4
Merge branch 'main' into main
albertmink Mar 27, 2024
2b0aaf6
Merge branch 'main' into main
schneidermic0 Apr 10, 2024
3bc02fc
Fix schema due to changes in issue #582
schneidermic0 Apr 10, 2024
8e4ecf6
Merge branch 'main' into main
schneidermic0 Apr 12, 2024
44ce75f
Merge branch 'main' into main
schneidermic0 Apr 12, 2024
3b4af15
Update file-formats/sfpf/type/zif_aff_sfpf_v1.intf.abap
Bomberus May 27, 2024
a8d14b4
fix typo dataprovider
Bomberus May 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions file-formats/sfpf/README.md
schneidermic0 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# SFPF File Format

File | Cardinality | Definition | Schema | Example
:--- | :--- | :--- | :--- | :---
`<name>.sfpf.json` | 1 | [`zif_aff_sfpf_v1.intf.abap`](./type/zif_aff_sfpf_v1.intf.abap) | [`sfpf-v1.json`](./sfpf-v1.json) | [`z_aff_example_sfpf.sfpf.json`](./examples/z_aff_example_sfpf.sfpf.json)
`<name>.sfpf.xdp` | 1 | [`XFA-3_3`](https://www.pdfa.org/norm-refs/XFA-3_3.pdf) | - | [`z_aff_example_sfpf.sfpf.xdp`](./examples/z_aff_example_sfpf.sfpf.xdp)
14 changes: 14 additions & 0 deletions file-formats/sfpf/examples/z_aff_example_sfpf.sfpf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"formatVersion": "1",
"header": {
"description": "Example SFPF for ABAP file formats",
"originalLanguage": "en",
"abapLanguageVersion": "cloudDevelopment"
},
"generalInformation": {
"dataprovider": "Example_SRV_DEF",
"fontEmbed": false,
"layoutMirroring": false,
"reduceDataVol": false
}
}
89 changes: 89 additions & 0 deletions file-formats/sfpf/examples/z_aff_example_sfpf.sfpf.xdp
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xfa generator="AdobeLiveCycleDesigner_V11.0.9.20230302.1.41_SAP" APIVersion="3.6.23055.0"?>
<xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/" timeStamp="2023-11-28T15:36:44Z" uuid="6bbc0415-1ddf-4e6d-8fb1-2d0d63b53cfa">
<template xmlns:xliff="urn:oasis:names:tc:xliff:document:1.1" xmlns="http://www.xfa.org/schema/xfa-template/3.3/">
<?formServer defaultPDFRenderFormat acrobat10.0dynamic?>
<subform name="Formular1" layout="tb" locale="ambient" restoreState="auto">
<pageSet>
<pageArea name="Seite1" id="Page1">
<contentArea x="0.25in" y="0.25in" w="576pt" h="756pt"/>
<medium stock="default" short="612pt" long="792pt"/>
<?templateDesigner expand 1?></pageArea>
<?templateDesigner expand 1?></pageSet>
<subform w="576pt" h="756pt">
<draw name="Text1" y="111.125mm" w="203.2mm" h="9.525mm">
<ui>
<textEdit/>
</ui>
<value>
<exData contentType="text/html" xliff:rid="80A1E6A2-961B-44F9-9103-AD352BE82B49">
<body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"><p style="text-decoration:none;letter-spacing:0in">If you can read this, you<span style="xfa-spacerun:yes"> </span><span style="text-decoration:none;letter-spacing:0em">successfully</span> installed the designer on your PC.</p></body>
</exData>
</value>
<font typeface="Arial"/>
<margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>
<para hAlign="center"/>
</draw>
<?templateDesigner expand 1?></subform>
<proto/>
<desc>
<text name="version">11.0.9.20230302.1.6.0</text>
</desc>
<?templateDesigner expand 1?>
<?renderCache.subset "Arial" 0 0 ISO-8859-1 4 96 24 0003000F00110026002C0033003700440046004700480049004A004B004C004F005100520055005600570058005B005C ,.CIPTacdefghilnorstuxy?></subform>
<?templateDesigner DefaultPreviewDynamic 1?>
<?templateDesigner DefaultRunAt client?>
<?templateDesigner Grid show:1, snap:1, units:1, color:ff8080, origin:(0,0), interval:(79375,79375)?>
<?templateDesigner FormTargetVersion 33?>
<?templateDesigner DefaultCaptionFontSettings face:Arial;size:10;weight:normal;style:normal?>
<?templateDesigner DefaultValueFontSettings face:Arial;size:10;weight:normal;style:normal?>
<?templateDesigner DefaultLanguage JavaScript?>
<?acrobat JavaScript strictScoping?>
<?templateDesigner Rulers horizontal:1, vertical:1, guidelines:1, crosshairs:0?>
<?templateDesigner WidowOrphanControl 0?>
<?templateDesigner Zoom 75?>
<?templateDesigner SaveTaggedPDF 0?>
<?templateDesigner SavePDFWithEmbeddedFonts 0?>
<?templateDesigner SavePDFWithLog 0?></template>
<config xmlns="http://www.xfa.org/schema/xci/3.0/">
<agent name="designer">
<!-- [0..n] -->
<destination>pdf</destination>
<pdf>
<!-- [0..n] -->
<fontInfo/>
</pdf>
</agent>
<present>
<!-- [0..n] -->
<destination>pdf</destination>
<pdf>
<!-- [0..n] -->
<fontInfo>
<embed>0</embed>
</fontInfo>
<tagged>0</tagged>
<version>1.7</version>
<adobeExtensionLevel>8</adobeExtensionLevel>
</pdf>
<xdp>
<packets>*</packets>
</xdp>
</present>
</config>
<localeSet xmlns="http://www.xfa.org/schema/xfa-locale-set/2.7/"/>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 9.0-c000 79.cca54b0, 2022/11/26-09:29:55 ">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" xmlns:pdfuaid="http://www.aiim.org/pdfua/ns/id/" xmlns:pdf="http://ns.adobe.com/pdf/1.3/" xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" xmlns:desc="http://ns.adobe.com/xfa/promoted-desc/" rdf:about="">
<xmp:MetadataDate>2023-11-28T15:36:44Z</xmp:MetadataDate>
<xmp:CreatorTool>Adobe LiveCycle Designer 11.0</xmp:CreatorTool>
<pdfuaid:part>1</pdfuaid:part>
<pdf:Producer>Adobe LiveCycle Designer 11.0</pdf:Producer>
<xmpMM:DocumentID>uuid:6bbc0415-1ddf-4e6d-8fb1-2d0d63b53cfa</xmpMM:DocumentID>
<desc:version rdf:parseType="Resource">
<rdf:value>11.0.9.20230302.1.6.0</rdf:value>
<desc:ref>/template/subform[1]</desc:ref>
</desc:version>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta></xdp:xdp>
95 changes: 95 additions & 0 deletions file-formats/sfpf/sfpf-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"$comment": "This file is autogenerated, do not edit manually, see https://github.com/SAP/abap-file-formats for more information.",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/SAP/abap-file-formats/blob/main/file-formats/sfpf/sfpf-v1.json",
"title": "Object Type SFPF",
"description": "Object type SFPF",
"type": "object",
"properties": {
"formatVersion": {
"title": "Format Version",
"description": "Format version",
"type": "string",
"const": "1"
},
"header": {
"title": "Header",
"description": "Header",
"type": "object",
"properties": {
"description": {
"title": "Description",
"description": "Description of the ABAP object",
"type": "string",
"maxLength": 60
},
"originalLanguage": {
"title": "Original Language",
"description": "Original language of the ABAP object",
"type": "string",
"minLength": 2,
"maxLength": 2,
"pattern": "^[a-z]+$"
},
"abapLanguageVersion": {
"title": "ABAP Language Version",
"description": "ABAP language version",
"type": "string",
"enum": [
"standard",
"cloudDevelopment"
],
"enumTitles": [
"Standard",
"ABAP Cloud Development"
],
"enumDescriptions": [
"Standard",
"ABAP cloud development"
],
"default": "standard"
}
},
"additionalProperties": false,
"required": [
"description",
"originalLanguage"
]
},
"generalInformation": {
"title": "General Information",
"description": "General Information",
"type": "object",
"properties": {
"dataprovider": {
"title": "Dataprovider",
"description": "RAP Service Definition that implements the business context for this form template",
"type": "string",
"maxLength": 40
},
"fontEmbed": {
"title": "Font Embed",
"description": "Automatically embed font files into the output. Useful if your output uses fonts that are not delivered by default, for asian fonts or to include your own branding.",
"type": "boolean"
},
"layoutMirroring": {
"title": "Layout Mirroring",
"description": "When activated if your form template is designed in an LTR language and your target output is an RTL language, layout will be automatically mirrored in the output.",
"type": "boolean"
},
"reduceDataVol": {
"title": "Reduce Data Volume",
"description": "Reduce data input volume based on the form design",
"type": "boolean"
}
},
"additionalProperties": false
}
},
"additionalProperties": false,
"required": [
"formatVersion",
"header",
"generalInformation"
]
}
40 changes: 40 additions & 0 deletions file-formats/sfpf/type/zif_aff_sfpf_v1.intf.abap
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
INTERFACE zif_aff_sfpf_v1
PUBLIC.
TYPES:
BEGIN OF ty_general_information,
"! <p class="shorttext">Dataprovider</p>
"! RAP Service Definition that implements the business context for this form template
dataprovider TYPE c LENGTH 40,
"! <p class="shorttext">Font Embed</p>
"! Automatically embed font files into the output.
"! Useful if your output uses fonts that are not delivered by default,
"! for asian fonts or to include your own branding.
font_embed TYPE abap_bool,
"! <p class="shorttext">Layout Mirroring</p>
"! When activated if your form template is designed in an LTR language
"! and your target output is an RTL language,
"! layout will be automatically mirrored in the output.
layout_mirroring TYPE abap_bool,
"! <p class="shorttext">Reduce Data Volume</p>
"! Reduce data input volume based on the form design
reduce_data_vol TYPE abap_bool,
Bomberus marked this conversation as resolved.
Show resolved Hide resolved
END OF ty_general_information.

TYPES:
"! <p class="shorttext">Object Type SFPF</p>
"! Object type SFPF
BEGIN OF ty_main,
"! <p class="shorttext">Format Version</p>
"! Format version
"! $required
format_version TYPE zif_aff_types_v1=>ty_format_version,
"! <p class="shorttext">Header</p>
"! Header
"! $required
header TYPE zif_aff_types_v1=>ty_header_60_cloud,
"! <p class="shorttext">General Information</p>
"! General Information
"! $required
general_information TYPE ty_general_information,
END OF ty_main.
ENDINTERFACE.
7 changes: 7 additions & 0 deletions file-formats/sfpf/type/zif_aff_sfpf_v1.intf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"formatVersion": "1",
"header": {
"description": "AFF type for SFPF object",
"originalLanguage": "en"
}
}
Loading