mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-07-07 18:24:50 +00:00
MNT-24883 office pdf render header-fix
This commit is contained in:
parent
f6d03a18a2
commit
5aa262e7e4
@ -54,7 +54,6 @@ public class TransformManagerImpl implements TransformManager
|
|||||||
private OutputStreamLengthRecorder outputStreamLengthRecorder;
|
private OutputStreamLengthRecorder outputStreamLengthRecorder;
|
||||||
private String sourceMimetype;
|
private String sourceMimetype;
|
||||||
private String targetMimetype;
|
private String targetMimetype;
|
||||||
private String sourceFileName;
|
|
||||||
private File sourceFile;
|
private File sourceFile;
|
||||||
private File targetFile;
|
private File targetFile;
|
||||||
private boolean keepTargetFile;
|
private boolean keepTargetFile;
|
||||||
@ -160,9 +159,9 @@ public class TransformManagerImpl implements TransformManager
|
|||||||
createSourceFileCalled = true;
|
createSourceFileCalled = true;
|
||||||
|
|
||||||
if (sourceFile == null) {
|
if (sourceFile == null) {
|
||||||
sourceFile = StringUtils.isEmpty(sourceFileName)
|
sourceFile = StringUtils.isEmpty(this.processHandler.sourceFileName)
|
||||||
? FileManager.createSourceFile(request, inputStream, sourceMimetype)
|
? FileManager.createSourceFile(request, inputStream, sourceMimetype)
|
||||||
: FileManager.createSourceFileWithSameName(request, sourceFileName, inputStream, sourceMimetype);
|
: FileManager.createSourceFileWithSameName(request, this.processHandler.sourceFileName, inputStream, sourceMimetype);
|
||||||
}
|
}
|
||||||
return sourceFile;
|
return sourceFile;
|
||||||
}
|
}
|
||||||
|
@ -310,6 +310,11 @@ public class TransformRequest implements Serializable
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Builder withSourceFileName(final String sourceFileName) {
|
||||||
|
request.sourceFileName = sourceFileName;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public TransformRequest build()
|
public TransformRequest build()
|
||||||
{
|
{
|
||||||
return request;
|
return request;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user