1. Disable Word 97–2003 Document Scanning
Scenario/Problem: You want to disable extra checks on Word 97–2003 documents loaded by Word Services.
Solution: Use the DisableBinaryFileScan
parameter with the Set-SPWordConversionServiceApplication
cmdlet.
DisableBinaryFileScan
is a switch parameter. By default, it is false
, and Word Services performs additional checks on legacy Word documents (Word 97–2003). If you trust all sources of Word documents, you can disable this additional scanning by using Set-SPWordConversionServiceApplication
with the DisableBinaryFileScan
switch parameter, as shown in Listing 1.
Listing 1. Disabling the Scanning of Word 97–2003 Documents
Set-SPWordConversionServiceApplication
-Identity "Word Automation Services" -DisableBinaryFileScan
As long as all sources are trusted, it is a
good idea to disable scanning to improve performance of Word Services
against those documents. To enable scanning, use the same parameter
with a $false
value, as shown in Listing 2.
Listing 2. Enabling the Scanning of Word 97–2003 Documents
Set-SPWordConversionServiceApplication
-Identity "Word Automation Services" -DisableBinaryFileScan:$false
2. Disable Embedded Fonts in Conversions
Scenario/Problem: You want to disable the use of embedded fonts within Word document conversions.
Solution: Use the DisableEmbeddedFonts
parameter with the Set-SPWordConversionServiceApplication
cmdlet.
DisableEmbeddedFonts
is a switch parameter. By default, it is false
, and Word Services supports the conversion of embedded fonts within Word documents. You can disable this support by using Set-SPWordConversionServiceApplication
with the DisableEmbeddedFonts
switch parameter, as shown in Listing 3.
Listing 3. Disabling Embedded Font Support
Set-SPWordConversionServiceApplication
-Identity "Word Automation Services" -DisableEmbeddedFonts
Unless you are experiencing issues with
embedded fonts, you should be able to keep this setting enabled. To
enable embedded font support, use the same parameter with a $false
value, as shown in Listing 4.
Listing 4. Enabling Embedded Font Support
Set-SPWordConversionServiceApplication
-Identity "Word Automation Services" -DisableEmbeddedFonts:$false
3. Modify the Recycle Threshold
Scenario/Problem: You need to modify the recycle threshold of the conversion processes in Word Services.
Solution: Use the RecycleProcessThreshold
parameter with the Set-SPWordConversionServiceApplication
cmdlet.
The RecycleProcessThreshold
parameter enables you to specify the number of documents each
conversion process can convert before the process is recycled. The
default value is 100
(documents), whereas the valid range of values is 1
to 1000
. Listing 5 shows a sample threshold modification.
Listing 5. Changing the Recycle Threshold
Set-SPWordConversionServiceApplication
-Identity "Word Automation Services" -RecycleProcessThreshold 200