Skip to content

Add scanned page image export sample#1

Open
advanc3dUA wants to merge 1 commit intoDocutain:mainfrom
advanc3dUA:feature/image-export-sample
Open

Add scanned page image export sample#1
advanc3dUA wants to merge 1 commit intoDocutain:mainfrom
advanc3dUA:feature/image-export-sample

Conversation

@advanc3dUA
Copy link
Copy Markdown

Summary

Adds an image export flow to the sample app, demonstrating how to save each scanned or imported document page as JPG files.

What changed

  • Added an Image Export option to the main sample list.
  • Reused the existing scan/PDF/image input flow.
  • Exported all document pages with Document.pageCount() and Document.writeImage(page:fileUrl:).
  • Presented the exported JPG files with the system share sheet.
  • Added English and German localized strings with an English fallback for other locales.

Verification

  • Built successfully with xcodebuild:
    xcodebuild -project DocutainSDKExampleiOSSwift.xcodeproj -scheme DocutainSDKExampleiOSSwift -configuration Debug -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' CODE_SIGNING_ALLOWED=NO build
  • Runtime testing on a physical device could not be completed because obtaining a Docutain trial license from the website failed during verification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant