mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-08-14 17:58:27 +00:00
REPO-3626: changes after review.
This commit is contained in:
@@ -801,14 +801,9 @@ public class Tika
|
||||
context.set(DocumentSelector.class, documentSelector);
|
||||
}
|
||||
|
||||
if (pdfParserConfig != null)
|
||||
if (notExtractBookmarksText.equals(true))
|
||||
{
|
||||
|
||||
if (notExtractBookmarksText != null)
|
||||
{
|
||||
pdfParserConfig.setExtractBookmarksText(!notExtractBookmarksText);
|
||||
}
|
||||
|
||||
pdfParserConfig.setExtractBookmarksText(false);
|
||||
// pdfParserConfig is set to override default settings
|
||||
context.set(PDFParserConfig.class, pdfParserConfig);
|
||||
}
|
||||
|
@@ -345,7 +345,6 @@ public class TikaControllerTest extends AbstractTransformerControllerTest
|
||||
@Test
|
||||
public void pdfToTxtExtractBookmarksTest() throws Exception
|
||||
{
|
||||
|
||||
super.mockTransformCommand(controller, PDF, TXT, MIMETYPE_PDF, true);
|
||||
mockMvc.perform(mockMvcRequest("/transform", sourceFile, "targetExtension", targetExtension).param("notExtractBookmarksText", "true"))
|
||||
.andExpect(status().is(200))
|
||||
|
Reference in New Issue
Block a user