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

[Bug]: Pipeline img2pdf and merge #2352

Open
gdomod opened this issue Nov 28, 2024 · 1 comment
Open

[Bug]: Pipeline img2pdf and merge #2352

gdomod opened this issue Nov 28, 2024 · 1 comment
Labels
needs investigation Issues that require further investigation

Comments

@gdomod
Copy link

gdomod commented Nov 28, 2024

Installation Method

Docker

The Problem

are there other options in pipeline json , the fileInputautomate doesnt work if i want to add a img to and pdf

maybe fileInput: *png / *pdf

  "name": "Test",
  "pipeline": [
    {
      "operation": "/api/v1/convert/img/pdf",
      "parameters": {
        "fitOption": "fillPage",
        "colorType": "color",
        "autoRotate": true,
        "fileInput": "automated"
      }
    },
    {
      "operation": "/api/v1/general/merge-pdfs",
      "parameters": {
        "sortType": "orderProvided",
        "removeCertSign": false,
        "fileInput": "automated"
      }
    }
  ],
  "_examples": {
    "outputDir": "{outputFolder}/{folderName}",
    "outputFileName": "{filename}-{pipelineName}-{date}-{time}"
  },
  "outputDir": "{outputFolder}",
  "outputFileName": "{filename}"
}```

### Version of Stirling-PDF

0.34.0

### Last Working Version of Stirling-PDF

_No response_

### Page Where the Problem Occurred

_No response_

### Docker Configuration

_No response_

### Relevant Log Output

_No response_

### Additional Information

_No response_

### Browsers Affected

_No response_

### No Duplicate of the Issue

- [X] I have verified that there are no existing issues raised related to my problem.
Copy link

dosubot bot commented Nov 28, 2024

Hey @gdomod! I'm here to help you with any bugs, questions, or contributions you have regarding Stirling-PDF. Let's tackle this together!

The fileInput parameter in the pipeline JSON for Stirling-PDF has two valid options: "automated" and a specific file path. The "automated" option is designed to automatically select files that are ready for processing, excluding directories and the JSON file itself [1].

If you want to specify particular files, you can use a specific file path instead of "automated". However, using wildcards like *png or *pdf is not supported directly in the fileInput parameter. You would need to specify the exact file paths or handle file selection logic outside of the JSON configuration.

If "automated" is not working as expected, ensure that the files you want to process are correctly placed in the directory that the application is monitoring for automated processing.

To continue talking to Dosu, mention @dosu.

@dosubot dosubot bot added the needs investigation Issues that require further investigation label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs investigation Issues that require further investigation
Projects
None yet
Development

No branches or pull requests

1 participant