We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Documents converted from Word to PDF are not properly extractable by an ifilter

We are using an ifilter to get out information from pdf documents. This is done so you can have a search engine that can include document content.

We are using the adobe ifilter (ftp://ftp.adobe.com/pub/adobe/acrobat/win/9.x/PDFiFilter64installer.zip).

When extracting text from a word document converted to PDF using another provider, we get the words with spaces as expected. “This is a text line this is a new text line” (correct). When trying to use this tool with a document converted with Aspose.Words the linebreak does not properly add a spacebar. “This is a text linethis is a new text line” (incorrect).

Is there some kind of configuration to change and fix this? Or is it a bug?
<!–[if gte mso 9]>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:HyphenationZone>21</w:HyphenationZone>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>NO-BOK</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val=“Cambria Math”/>
<m:brkBin m:val=“before”/>
<m:brkBinSub m:val="–"/>
<m:smallFrac m:val=“off”/>
<m:dispDef/>
<m:lMargin m:val=“0”/>
<m:rMargin m:val=“0”/>
<m:defJc m:val=“centerGroup”/>
<m:wrapIndent m:val=“1440”/>
<m:intLim m:val=“subSup”/>
<m:naryLim m:val=“undOvr”/>
</m:mathPr></w:WordDocument>
<![endif]–><!–[if gte mso 10]>

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:8.0pt; mso-para-margin-left:0cm; line-height:106%; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Calibri",sans-serif;}

<![endif]–>

Just wanted to add the simple code we actually use to convert from Word to PDF:
var doc = new Aspose.Words.Document(fileToConvert);
var options = new Aspose.Words.Saving.PdfSaveOptions
{
SaveFormat = Aspose.Words.SaveFormat.Pdf,
Compliance = Aspose.Words.Saving.PdfCompliance.PdfA1b,
ExportDocumentStructure = true
};
doc.Save(destination, options);

Hi Marius,


Thanks for your inquiry. We have just released a new version of Aspose.Words for .NET 16.1.0; please upgrade to the latest version and see how it goes on your end. Hope, this helps.

In case the problem still remains, please attach your input Word document and Aspose.Words generated output PDF file here for testing. We will investigate the issue on our end and provide you more information.

Best regards,