Hello Aspose-Team,
i have problem with PdfA1A while saving. I generate a Pdf file from XML and XSLT, in which i use different bullets (headingType). When i display it from byte stream after generation, everything works fine. Then I save my pdf file and open again: all user defined bullets (e.g. UserLabel 45) lost. System defined bullets are displayed correct. Do i need to preconfigure something, to get it displayed correced?
The second issue i’m facing is just opposite: incorrect displaying of system defined bullets (Bullet4 and Bullet5) in normal mode of Pdf (no PDFA1A-conformance) and correct displaying of user defined bullets after saving. Insead of it i got just symbols (%) or just number 4 for Bullet4.
Usage: Aspose.Pdf v9.3.
Thanks a lot in advance
Alex
Hi Alex,
Hi Tilal,
thank you for a very quick response.
Here is xslt-code, i’m using:
<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet version=“1.0” xmlns:xsl=“XSLT Namespace”>
<xsl:attribute-set name=“HeadingUserLabelMinus”>
<xsl:attribute name=“UserLabel”>45</xsl:attribute>
<xsl:attribute name=“BulletFontName”>Symbol</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name=“HeadingBullet4”>
<xsl:attribute name=“UserLabel”>Bullet4</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name=“HeadingBullet5”>
<xsl:attribute name=“UserLabel”>Bullet5</xsl:attribute>
</xsl:attribute-set>
<xsl:template name=“Main” match=“node()”>
minus
bullet 4
bullet 5
</xsl:template>
</xsl:stylesheet>
C# -code is pretty much common:
Pdf pdf = new Pdf();
pdf.BindXML(aDocumentModel, xslt);
byte[] pdfFile;
using (MemoryStream memStream = new MemoryStream())
{
pdf.Save(memStream);
memStream.Position = 0;
pdfFile = memStream.ToArray();
}
I try to describe 4 cases:
_______________________________________
|_________| no conformance | with PdfA1A conformance |
|open in browser (Firefox) from | case 1 | case 2 |
|bytearray (no saving to HD)|||
|open in AdobeReader | case 3 | case 4 |
|from file after saving_to HD||_________|
In attachment you see screenshot from browser or from AdobeReader for all 4 situation.
Please help me to get displayed it from file correct at least for PdfA1A.
Thanks a lot in advance!
Alex
Hi Alex,
Hi Tilal,
My doc.xml, which i get in all 4 cases, is only 2 rows long:
<?xml version="1.0" encoding="utf-16"?>
As you can see on the image from my previous post, cases 2 und 3 are correct and acceptable for me. I would like to get case 4 displayed correct.
I you have any questions, please ask me without hesitations.
Alex
Hi Alex,
- Firefox
- At the top of the Firefox window, click on the Firefox button and then select Options
- Select the Applications panel
- Find Portable Document Format (PDF) in the list and click on it to select it
- Click on the drop-down arrow in the Action column for the above entry and select Use Acrobat Reader (in Firefox)
- Restart the browser