mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-06-30 18:14:51 +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 String sourceMimetype;
|
||||
private String targetMimetype;
|
||||
private String sourceFileName;
|
||||
private File sourceFile;
|
||||
private File targetFile;
|
||||
private boolean keepTargetFile;
|
||||
@ -160,9 +159,9 @@ public class TransformManagerImpl implements TransformManager
|
||||
createSourceFileCalled = true;
|
||||
|
||||
if (sourceFile == null) {
|
||||
sourceFile = StringUtils.isEmpty(sourceFileName)
|
||||
sourceFile = StringUtils.isEmpty(this.processHandler.sourceFileName)
|
||||
? FileManager.createSourceFile(request, inputStream, sourceMimetype)
|
||||
: FileManager.createSourceFileWithSameName(request, sourceFileName, inputStream, sourceMimetype);
|
||||
: FileManager.createSourceFileWithSameName(request, this.processHandler.sourceFileName, inputStream, sourceMimetype);
|
||||
}
|
||||
return sourceFile;
|
||||
}
|
||||
|
@ -310,6 +310,11 @@ public class TransformRequest implements Serializable
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder withSourceFileName(final String sourceFileName) {
|
||||
request.sourceFileName = sourceFileName;
|
||||
return this;
|
||||
}
|
||||
|
||||
public TransformRequest build()
|
||||
{
|
||||
return request;
|
||||
|
Loading…
x
Reference in New Issue
Block a user