There is any limitation on Serializing the Aspose Document and used to do object creation in order to generate the PDF from this model instead on pre-defined aspose xml schema, so we can introduce tagged elements? Thanks in advance
Would you kindly share a bit more details like what kind of input you are thinking of supplying to the API and what output you want to achieve from it? You can please share basic sample files with us so that we can investigate and address the scenario accordingly.
This example is described in the documentation :
<Header>
<Margin Top="20" />
<Table ColumnAdjustment="AutoFitToWindow">
<Row>
<Cell Alignment="1">
<TextFragment>
<TextSegment>Date: 01/01/2021</TextSegment>
</TextFragment>
</Cell>
<Cell Alignment="3">
<TextFragment>
<TextSegment>Page $p / $P</TextSegment>
</TextFragment>
</Cell>
</Row>
</Table>
</Header>
But is not valid against the schema
<xs:complexType name="HeaderType">
<xs:sequence>
<xs:element xmlns:asp="Aspose.Pdf" type="asp:MarginType" name="Margin" minOccurs="0"/>
<xs:element xmlns:asp="Aspose.Pdf" type="asp:TableType" name="Table"/>
<xs:element xmlns:asp="Aspose.Pdf" type="asp:ImageType" name="Image"/>
<xs:element xmlns:asp="Aspose.Pdf" type="asp:GraphType" name="Graph"/>
<xs:element xmlns:asp="Aspose.Pdf" type="asp:FloatingBoxType" name="FloatingBox"/>
<xs:element xmlns:asp="Aspose.Pdf" type="asp:TextFragmentType" name="TextFragment"/>
<xs:element type="xs:string" name="HtmlFragment"/>
<xs:element xmlns:asp="Aspose.Pdf" type="asp:HeadingType" name="Heading"/>
</xs:sequence>
</xs:complexType>
The above XML is written for adding a table inside PDF whereas the below particular sequence is for Header. Do you want to add a header in the PDF using XML template? If you have prepared some XML for your requirements and its not working, can you please share the complete file in .zip format along with the code sample you are using? We will investigate the scenario and address it accordingly.
I want to migrate old schema documents to the new schema version.
Properties like “IsFirstPageOnly” gone in the new schema.
How can this be made?
<Header IsFirstPageOnly="true" MarginTop="1cm">
<Table ColumnWidths="150 350" IsNeedRepeating="false" DefaultCellPaddingBottom="20" DefaultCellPaddingLeft="0" DefaultCellPaddingRight="0" DefaultCellPaddingTop="20">
<Row>
<Cell>
<Image ID="signatureImage" FixHeight="35" Alignment="Left" File="..." />
</Cell>
<Cell>
<Text FontName="Arial" FontSize="16" Alignment="Right">
<Segment>...</Segment>
</Text>
</Cell>
</Row>
</Table>
</Header>
<Header IsSubsequentPagesOnly="true" MarginTop="1cm" MarginBottom="1cm">
<Table ColumnWidths="150 350" IsNeedRepeating="false" DefaultCellPaddingBottom="20" DefaultCellPaddingLeft="0" DefaultCellPaddingRight="0" DefaultCellPaddingTop="20">
<Row>
<Cell>
<Image ID="signatureImage" FixHeight="25" Alignment="Left" File="..." />
</Cell>
<Cell>
<Text FontName="Arial" Alignment="Right" MarginBottom="5">
<Segment>...</Segment>
</Text>
<Text FontName="Arial" FontSize="8" Alignment="Right">
<Segment>...</Segment>
<Segment>...</Segment>
</Text>
</Cell>
</Row>
</Table>
</Header>
Can you please share your old XML that was written following the old schema? We will log an investigation ticket to analyze it and update it as per new XML schema.
<Header IsFirstPageOnly="true" MarginTop="1cm">
<Table ColumnWidths="150 350" IsNeedRepeating="false" DefaultCellPaddingBottom="20"
DefaultCellPaddingLeft="0" DefaultCellPaddingRight="0" DefaultCellPaddingTop="20">
<Row>
<Cell>
<Image ID="signatureImage" FixHeight="35" Alignment="Left"
File="..." />
</Cell>
<Cell>
<Text FontName="Arial" FontSize="16" Alignment="Right">
<Segment>...</Segment>
</Text>
</Cell>
</Row>
</Table>
</Header>
<Header IsSubsequentPagesOnly="true" MarginTop="1cm" MarginBottom="1cm">
<Table ColumnWidths="150 350" IsNeedRepeating="false" DefaultCellPaddingBottom="20"
DefaultCellPaddingLeft="0" DefaultCellPaddingRight="0" DefaultCellPaddingTop="20">
<Row>
<Cell>
<Image ID="signatureImage" FixHeight="25" Alignment="Left"
File="..." />
</Cell>
<Cell>
<Text FontName="Arial" Alignment="Right" MarginBottom="5">
<Segment>...</Segment>
</Text>
<Text FontName="Arial" FontSize="8" Alignment="Right">
<Segment>...</Segment>
<Segment>Page: $p of $P</Segment>
</Text>
</Cell>
</Row>
</Table>
</Header>
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): PDFNET-61362
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.