Class TeXSaveOptions
TeXSaveOptions class
Save options for export to TeX format
public class TeXSaveOptions : UnifiedSaveOptions
Constructors
Properties
Name | Description |
---|
CacheGlyphs { get; set; } | Gets or sets boolean value which indicates if will font glyphs be cached while preparing aps pages. Improves performance of conversion pdf to other formats but increases memory consumption. |
CloseResponse { get; set; } | Gets or sets boolean value which indicates will Response object be closed after document saved into response. |
ExtractOcrSublayerOnly { get; set; } | This atrribute turned on functionality for extracting image or text for PDF documents with OCR sublayer. |
OutDirectoryPath { get; set; } | Property for _outDirectoryPath parameter. |
PagesCount { get; } | Returns the number of pages after conversion. |
SaveFormat { get; } | Format of data save. |
WarningHandler { get; set; } | Callback to handle any warnings generated. The WarningHandler returns ReturnAction enum item specifying either Continue or Abort. Continue is the default action and the Save operation continues, however the user may also return Abort in which case the Save operation should cease. |
Methods
Name | Description |
---|
AddFontEncs(params string[]) | Adds a font ancoding to the font encoding list |
ClearFontEncs() | Clears the font encoding list |
Fields
Name | Description |
---|
IsMultiThreading | Process pages in few threads. |
TryMergeAdjacentSameBackgroundImages | Sometimes PDFs contain background images (of pages or table cells) constructed from several same tiling background images put one near other. In such case renderers of target formats (f.e MsWord for DOCS format) sometimes generates visible boundaries beetween parts of background images, cause their techniques of image edge smoothing (anti-aliasing) is different from Acrobat Reader. If it looks like exported document contains such visible boundaries between parts of same background images, please try use this setting to get rid of that unwanted effect. ATTENTION! This optimization of quality usually essentially slows down conversion, so, please, use this option only when it’s really necessary. |
Examples
The following example shows how to convert PDF file to TeX file
[C#]
// The path to the documents directory.
string dataDir = "YOUR_DATA_DIRECTORY";
// The path to your PDF File.
var pdfFile = Path.Combine(dataDir, "PDF-to-TeX.pdf");
// The path to output TeX File.
var texFile= Path.Combine(dataDir, "PDF-to-TeX.tex");
using (Document pdfDocument = new Document(pdfFile))
{
// Initialize TeXSaveOptions
TeXSaveOptions saveOptions = new TeXSaveOptions();
// Save TeX file
pdfDocument.Save(texFile, saveOptions);
}
[VB.NET]
' The path to the documents directory.
Dim dataDir As String = "YOUR_DATA_DIRECTORY"
' The path to your PDF File.
Dim pdfFile = Path.Combine(dataDir, "PDF-to-TeX.pdf")
' The path to output TeX File.
Dim texFile = Path.Combine(dataDir, "PDF-to-TeX.tex")
Using pdfDocument As Document = New Document(pdfFile)
' Initialize TeXSaveOptions
Dim saveOptions As TeXSaveOptions = New TeXSaveOptions()
' Save TeX file
pdfDocument.Save(texFile, saveOptions)
End Using
See Also