GDPicture 14 - Docx with content controls to pdf
Posted: Wed Apr 21, 2021 1:20 pm
Hi all,
We're having trouble converting docx files (containing content controls) to PDF using GDPicture sdk 14.
This is the code used for the conversion
if (gdpictureDocumentConverter.LoadFromStream(new MemoryStream(sourceContent), GdPicture14.DocumentFormat.DocumentFormatDOCX) ==
GdPictureStatus.OK)
{
var OpRet = gdpictureDocumentConverter.SaveAsPDF(outFile, PdfConformance.PDF1_5);
ret = OpRet == GdPictureStatus.OK;
if (!ret) OperationError = Enum.GetName(typeof(GdPictureStatus), OpRet);
}
If you try to convert the attached file, TestGDP.docx, with that code, you can see the result in GDP_Parc1.pdf: the content controls are not filled in with the respective values present in the source docx file.
Can you help me to solve this issue?
Thanks in advance,
Nunzio.
We're having trouble converting docx files (containing content controls) to PDF using GDPicture sdk 14.
This is the code used for the conversion
if (gdpictureDocumentConverter.LoadFromStream(new MemoryStream(sourceContent), GdPicture14.DocumentFormat.DocumentFormatDOCX) ==
GdPictureStatus.OK)
{
var OpRet = gdpictureDocumentConverter.SaveAsPDF(outFile, PdfConformance.PDF1_5);
ret = OpRet == GdPictureStatus.OK;
if (!ret) OperationError = Enum.GetName(typeof(GdPictureStatus), OpRet);
}
If you try to convert the attached file, TestGDP.docx, with that code, you can see the result in GDP_Parc1.pdf: the content controls are not filled in with the respective values present in the source docx file.
Can you help me to solve this issue?
Thanks in advance,
Nunzio.