Skip to content

Releases: Nicklas373/Hana-PDF

HANA PDF v3.7.0 [BE]

01 Mar 02:29
681bdb2
Compare
Choose a tag to compare

Updated

  • Add new logic to insert all file transaction into fileModel, required for new s3 Object Storage scheduler
  • Add new validation logic for split and watermarkController to check if page that was sent was not 0 or empty
  • Cleanup almost all unused try-catch logic
  • Fix issue that affected telegram notification that sometimes are failed to send, due error on template
  • Fix other left SNYK code security recommendation issue
  • Improve core controller validation (add more validation logic for file, extensions and even file size)
  • Include fileModel into log API
  • Include missing cleanup directory for local storage
  • Introduce new scheduler to cleanup S3 Object Storage every one hours (Logged to database)
  • Migrating Backend Base into Laravel 12.x

What's Changed

Full Changelog: v3.6.7-BE-PROD...v3.7.0-BE-PROD

HANA PDF v3.4.6 [FE]

01 Mar 02:30
aa3bf3f
Compare
Choose a tag to compare

Updated

  • Apply SNYK Code Security Reviews
  • Add new validation for split and watermark to check if page value is zero or not
  • Fix issue thumbnail can not be generated when batch uploading, due race condition on getTemporary URL logic
  • Upgrade Frontend framework into Laravel 12.x

What's Changed

Full Changelog: v3.4.4-FE-PROD...v3.4.6-1-FE-PROD

HANA PDF v3.4.4 [FE]

12 Jan 06:30
bfb2713
Compare
Choose a tag to compare

Background

As users, i want to upload any file that i want to proceed without any worries regarding non-standarize name on file or not

Current condition

iLovePDF seems have sensitive case regarding non-standarize or duplicate characters on file name that want to proceed, so whenever any file that have non-standarize or duplicate characters on it. It will return error and crash iLovePDF logics with error

({"error":{"type":"ServerError","message":"Something on our end went wrong, probably we are not catching some exception we should catch! We are logging this and we will fix it.","code":"500"}})

Next condition

Handle properly on the front-end services to rename any uploaded file before serve to the backend, this is better approach and less modification on source code. Due change renaming logic on backend could be hectic and risky.

What's Changed

Full Changelog: v3.4.3-FE-PROD...v3.4.4-FE-PROD

HANA PDF v3.6.7 [BE]

05 Jan 09:01
c97ee7f
Compare
Choose a tag to compare

Background

As users, i want to preview or see thumbnail for every task or upload. In current condition when i upload any document or spreadsheet. No thumbnail was loaded or processed, but fine on other files like PDF and image.

Current condition

Since almost all controller already moved to min.io for data storage and not stored anymore on local, somehow thumbnail controller are not following changes and result thumbnail can't be processed at all

Next condition

Properly store and generate temporary URL from min.io to generate and served back to front-end services after processing

What's Changed

Full Changelog: v3.6.5-BE-PROD...v3.6.7-BE-PROD

HANA PDF v3.4.3 [FE]

05 Jan 09:01
0298ab1
Compare
Choose a tag to compare

Background

As users, i want to preview or see thumbnail for every task or upload. In current condition when i upload any document or spreadsheet. No thumbnail was loaded or processed, but fine on other files like PDF and image.

Current condition

Since backend services are not able to generate thumbnail, due overleft dependency regarding min.io file storage and file url. It causing backend return 400 - BAD REQUEST, although front-end can handle it properly. But thumbnail can't never be generated

Next condition

After backend services got fixed, next step is need to proper handle temporary url for thumbnail that was send from backend services.

What's Changed

Full Changelog: v3.4.2-1-FE-PROD...v3.4.3-FE-PROD

HANA PDF v3.6.5 [BE]

22 Dec 15:48
007cfee
Compare
Choose a tag to compare

What's New:

  • Do not append previous filename extensions into processed filename
    ("_EXTENSIONS.EXTENSIONS" -> ".EXTENSIONS")
  • Properly declare convert type method on file detection logic after
    convertion process done,
    this to prevent pptx file are not readable due hardcoded "xlsx"
    extension after merge logic.

What's Changed

Full Changelog: v3.6.4-BE-PROD...v3.6.5-BE-PROD

HANA PDF v3.6.4 [BE] [HOTFIX]

13 Dec 00:08
b766d78
Compare
Choose a tag to compare

Before Condtion:
In some condition, when count pdf files by using $pdf->pageCount() with spatiePDF modules. It'll run issue in some of PDF files when it can't repopulate with Ghostscript and return error;

PDFDelegateFailed [ghostscript library 10.04] -sstdout=%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-sDEVICE=pngalpha' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r2.0x2.0' -dPrinted=false '-sOutputFile=/tmp/magick-eLtRTJYemQEHIfT1hu3Tuv42uBnodDfK%d' '-f/tmp/magick-Coayb8omrqMkD5YVdcNfHgbCobmeJmeK' '-f/tmp/magick-gjttaXChInmMeYFp5Fq7DgXYBefCiceK': (null)' @ error/pdf.c/ReadPDFImage/712

The backend itself doesn't crash, cause error already handled properly. But it'll be stopper to main process due fail to get total PDF pages.

Next Condition:
Use old php native function to count PDF pages from previous method, to count properly PDF pages in the mean time

What's Changed

  • [BE][Weekly Update] Composer update 20241208 by @Nicklas373 in #297
  • [HOTFIX][BE]: Use old php native function to count PDF pages by @Nicklas373 in #299

Full Changelog: v3.6.3-BE-PROD...v3.6.4-BE-PROD

HANA PDF v3.6.3 [BE] [HOTFIX]

02 Dec 01:39
7ab42c3
Compare
Choose a tag to compare

Changelog:

  • Add more timeout handling for guzzle HTTP requests

What's Changed

Full Changelog: v3.6.2-BE-PROD...v3.6.3-BE-PROD

HANA PDF v3.4.2-1 [FE] [HOTFIX]

02 Dec 01:39
f29c30c
Compare
Choose a tag to compare

Changelog:

  • Try to render properly exceptions page

What's Changed

Full Changelog: v3.4.2-FE-PROD...v3.4.2-1-FE-PROD

HANA PDF v3.6.2 [BE] [HOTFIX]

01 Dec 10:45
03a8079
Compare
Choose a tag to compare

Changelog:

  • Add timeout into http request (5 minutes) by default, this to mitigate
    default http timeout from guzzle (30 seconds). Due un-predicted Aspose
    API response
  • Add handler when timeout already running out to return proper error
    message and avoid backend server crashes
  • Merge function convert to xlsx and pptx into one function

What's Changed

  • [HOTFIX][BE]: Fix unmitigated Guzzle timeout error by @Nicklas373 in #294

Full Changelog: v3.6.1-BE-PROD...v3.6.2-BE-PROD