Issues

Select view

Select search mode

 

cfpdf action="addHeader/addFooter" with destination attribute throws incorrect error

Fixed

Description

When using cfpdf action="addHeader/addFooter" with the destination attribute, it always throws the error "Destination PDF file [D:......\destPdf.pdf] already exists" if the destination file does not exist in the destination path.

<cfpdf action="addheader" source="D:\..\document.pdf" destination="D:\..\resultPdf.pdf" text="This is the text"/>

Environment

None

Details

Assignee

Reporter

Priority

Labels

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Created 16 December 2022 at 12:27
Updated 15 September 2023 at 10:17
Resolved 15 September 2023 at 10:17

Activity

Show:

Pothys - MitrahSoft15 September 2023 at 10:17

I checked this issue with PDF Extension version 1.2.0.8-SNAPSHOT and now the issue has been resolved.

Zac Spitzer18 December 2022 at 11:14
Edited

I don’t follow what the problem is?

https://github.com/lucee/extension-pdf/pull/52

https://github.com/lucee/extension-pdf/actions/runs/3724553532

[java]    [script] cfpdf action="addFooter" with destination attribute throws incorrect error , overwrite=false [java]    [script] [java]    [script]  Errored: Destination PDF file [/home/runner/work/_actions/lucee/script-runner/main/temp/lucee/lucee-server/context/temp/LDEV-4329-dest31.pdf] already exists [java]    [script]  /home/runner/work/extension-pdf/extension-pdf/tests/LDEV4329.cfc:31 [java]    [script]  /home/runner/work/extension-pdf/extension-pdf/lucee/test/_testRunner.cfc:431 [java]    [script]  /home/runner/work/extension-pdf/extension-pdf/lucee/test/run-tests.cfm:234 [java]    [script]  /bootstrap-tests.cfm:108

https://github.com/lucee/extension-pdf/commit/b0b72ddbef7de6b18bf9421ae71b4d5c0f9d8730 (2 tests disabled)

Pothys - MitrahSoft16 December 2022 at 14:43

I added a fix to this ticket
Pull Request: https://github.com/lucee/extension-pdf/pull/51

Flag notifications