Skip to content

Commit

Permalink
fix(pdf-engines): resolve issue with PDF Engines conversion route
Browse files Browse the repository at this point in the history
  • Loading branch information
cherfia committed Oct 4, 2024
1 parent a35ee78 commit 208fb89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/main.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export enum ChromiumRoute {
* @enum {string}
*/
enum PdfEngineRoute {
CONVERT = 'convert',
MERGE = 'merge',
READ_METADATA = 'metadata/read',
WRITE_METADATA = 'metadata/write'
Expand Down Expand Up @@ -92,6 +93,7 @@ export class Chromiumly {
* @type {Object}
*/
public static readonly PDF_ENGINE_ROUTES = {
convert: PdfEngineRoute.CONVERT,
merge: PdfEngineRoute.MERGE,
readMetadata: PdfEngineRoute.READ_METADATA,
writeMetadata: PdfEngineRoute.WRITE_METADATA
Expand Down
2 changes: 1 addition & 1 deletion src/pdf-engines/pdf-engines.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class PDFEngines {
downloadFrom
});

const endpoint = `${Chromiumly.getGotenbergEndpoint()}/${Chromiumly.LIBRE_OFFICE_PATH}/${Chromiumly.LIBRE_OFFICE_ROUTES.convert}`;
const endpoint = `${Chromiumly.getGotenbergEndpoint()}/${Chromiumly.PDF_ENGINES_PATH}/${Chromiumly.PDF_ENGINE_ROUTES.convert}`;

return GotenbergUtils.fetch(
endpoint,
Expand Down

0 comments on commit 208fb89

Please sign in to comment.