Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pdf (convert from excel by ConvertService api ) insert image watermark was incorrect. #2866

Open
1 task done
givelin6782 opened this issue Aug 30, 2024 · 4 comments
Open
1 task done
Assignees
Labels
waiting feedback Issues that we waiting to be answered from author of issue

Comments

@givelin6782
Copy link

This issue is unique.

  • I have used the search tool and did not find an issue describing my bug.

Operating System of DocumentServer

Linux (DEB package), Docker

Version information

8.10

Expected Behavior

insert image watermark to a pdf that convert by onlyoffice api (ConvertService.ashx)from an excel file . Can be fully displayed.,like this attached image that convert pdf form Microsoft office . i add image watermark by aspose.pdf

4830bf12511783049a26859dcb66cb4d

Actual Behavior

the image watermark is Blocked by merging cells

e39fe97b72d7cdce46eea8d2d9cab98a

Reproduction Steps

No response

Additional information

No response

@givelin6782 givelin6782 changed the title insert image watermark to pdf was incorrect pdf (convert from excel by ConvertService api ) insert image watermark was incorrect. Aug 30, 2024
@askonev
Copy link
Member

askonev commented Sep 11, 2024

@givelin6782 greetings. Can you attach the config with which you install watermark via Convert Service?

@askonev
Copy link
Member

askonev commented Sep 11, 2024

Reproducting v8.2.0.54

{
    "async": false,
    "filetype": "xlsx",
    "outputtype": "pdf",
    "url": "http://{{host}}:{{nginx_port}}/files/xlsx/merge_cells.xlsx",
    "key": "{{$guid}}",
    "watermark": {
    "align": 1,
    "fill": [255, 0, 0],
    "height": 100,
    "margins": [ 10, 10, 10, 10 ],
    "paragraphs": [
        {
            "align": 2,
            "fill": [255, 0, 0],
            "linespacing": 1,
            "runs": [
                {
                    "bold": true,
                    "italic": false,
                    "fill": [0, 0, 0],
                    "font-family": "Arial",
                    "font-size": 40,
                    "strikeout": false,
                    "text": "Watermark",
                    "underline": false
                },
                {
                    "text": "<%br%>"
                }
            ]
        }
    ],
    "rotate": -45,
    "transparent": 0.3,
    "type": "rect",
    "stroke-width": 1,
    "stroke": [0, 0, 255],
    "width": 100
    }
}

image

@givelin6782
Copy link
Author

givelin6782 commented Sep 13, 2024

@askonev thanks a lot for your response .

the watermark is image format like .jpg , not text , and to add text watermark via Convert Service is workable

BUT Convert Service can NOT add IMAGE watermark, so i use Aspose.pdf to add image watermark(pdf file is converted by Convert service) ,and it is not workable.

@askonev
Copy link
Member

askonev commented Sep 16, 2024

@givelin6782 I didn't fully understand the script.

You get a pdf with a jpg watermark-style image in the editor

The next step is to convert to xlsx format.

Did I understand correctly?

@Rita-Bubnova Rita-Bubnova added the waiting feedback Issues that we waiting to be answered from author of issue label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting feedback Issues that we waiting to be answered from author of issue
Projects
None yet
Development

No branches or pull requests

3 participants