Bugfix/V2/pdfa_extension (#4336)

Changes fallback pdfa extension pdf when a filename isnt returned for
convert.
Also fixes ui bug with footer and pop ups

---------

Co-authored-by: Connor Yoh <connor@stirlingpdf.com>
This commit is contained in:
ConnorYoh 2025-09-01 12:23:27 +01:00 committed by GitHub
parent 6dbaff5342
commit 96aa43860b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -24,7 +24,6 @@ export default function Footer({
return (
<div style={{
height: 'var(--footer-height)',
zIndex: 999999,
backgroundColor: 'var(--mantine-color-gray-1)',
borderTop: '1px solid var(--mantine-color-gray-2)',
display: 'flex',

View File

@ -79,6 +79,11 @@ export const createFileFromResponse = (
targetExtension: string
): File => {
const originalName = originalFileName.split('.')[0];
if (targetExtension == 'pdfa') {
targetExtension = 'pdf';
}
const fallbackFilename = `${originalName}_converted.${targetExtension}`;
return createFileFromApiResponse(responseData, headers, fallbackFilename);