Skip to content

Commit

Permalink
Merge pull request #457 from ONLYOFFICE/feature/create-pdf-from-docxf
Browse files Browse the repository at this point in the history
Feature/create pdf from docxf
  • Loading branch information
LinneyS authored Feb 19, 2024
2 parents f7f5eff + 7596c75 commit f8b9c0f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- list of users to protect ranges of cells
- offline viewer for share link
- updatable list of supported formats
- filling pdf instead oform

## Added
- reference data from coediting
Expand Down
1 change: 0 additions & 1 deletion appinfo/application.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ function () {
$detector->registerType("ots", "application/vnd.oasis.opendocument.spreadsheet-template");
$detector->registerType("otp", "application/vnd.oasis.opendocument.presentation-template");
$detector->registerType("docxf", "application/vnd.openxmlformats-officedocument.wordprocessingml.document.docxf");
$detector->registerType("oform", "application/vnd.openxmlformats-officedocument.wordprocessingml.document.oform");

$previewManager = $container->query(IPreview::class);
if ($this->appConfig->getPreview()) {
Expand Down
2 changes: 1 addition & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@

OCA.Onlyoffice.CreateFormClick = function (fileName, context) {
var fileList = context.fileList;
var name = fileName.replace(/\.[^.]+$/, ".oform");
var name = fileName.replace(/\.[^.]+$/, ".pdf");

var attr = context.fileInfoModel.attributes;
var targetPath = attr.path + "/" + attr.name;
Expand Down
3 changes: 2 additions & 1 deletion lib/appconfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,8 @@ private function buildOnlyofficeFormats() {
&& $onlyOfficeFormat["mime"]
&& $onlyOfficeFormat["type"]
&& $onlyOfficeFormat["actions"]
&& $onlyOfficeFormat["convert"]) {
&& $onlyOfficeFormat["convert"]
) {
$result[$onlyOfficeFormat["name"]] = [
"mime" => $onlyOfficeFormat["mime"],
"type" => $onlyOfficeFormat["type"],
Expand Down

0 comments on commit f8b9c0f

Please sign in to comment.