Closed NayanVaid closed 3 years ago
What do you want to do, can you explain better?
I want to save the pdf file after it is scanned. Thank you for your response :D
I want to save the pdf file after it is scanned. Thank you for your response :D
You need to get image URI After
https://github.com/Anyline/react-native-image-to-pdf
use this component for convert image to pdf...
it's a pleasure to help :)
Does this works with expo? How can I get the scanned image uri? Thank you :D
You can find the response with 64Base URI
Prop | Platform | Default | Type | Description |
---|---|---|---|---|
overlayColor | Both | none | string | Color of the detected rectangle : rgba recommended |
detectionCountBeforeCapture | Both | 5 | integer | Number of correct rectangle to detect before capture |
detectionRefreshRateInMS | iOS | 50 | integer | Time between two rectangle detection attempt |
enableTorch | Both | false | bool | Allows to active or deactivate flash during document detection |
useFrontCam | iOS | false | bool | Allows you to switch between front and back camera |
brightness | iOS | 0 | float | Increase or decrease camera brightness. Normal as default. |
saturation | iOS | 1 | float | Increase or decrease camera saturation. Set 0 for black & white |
contrast | iOS | 1 | float | Increase or decrease camera contrast. Normal as default |
quality | iOS | 0.8 | float | Image compression. Reduces both image size and quality |
useBase64 | iOS | false | bool | If base64 representation should be passed instead of image uri's |
saveInAppDocument | iOS | false | bool | If should save in app document in case of not using base 64 |
captureMultiple | iOS | false | bool | Keeps the scanner on after a successful capture |
onPermissionsDenied | android | null | func | Function to call when the Android permissions are denied |
Thank you soo much :D Just one last question. Does this works wih expo?
saveInAppDocument
demo:
With this new feature, we can now save images into app document, and then see them directly into the apple file explore
You can find the response with 64Base URI
Properties
Prop Platform Default Type Description overlayColor Both none string Color of the detected rectangle : rgba recommended detectionCountBeforeCapture Both 5 integer Number of correct rectangle to detect before capture detectionRefreshRateInMS iOS 50 integer Time between two rectangle detection attempt enableTorch Both false bool Allows to active or deactivate flash during document detection useFrontCam iOS false bool Allows you to switch between front and back camera brightness iOS 0 float Increase or decrease camera brightness. Normal as default. saturation iOS 1 float Increase or decrease camera saturation. Set 0 for black & white contrast iOS 1 float Increase or decrease camera contrast. Normal as default quality iOS 0.8 float Image compression. Reduces both image size and quality useBase64 iOS false bool If base64 representation should be passed instead of image uri's saveInAppDocument iOS false bool If should save in app document in case of not using base 64 captureMultiple iOS false bool Keeps the scanner on after a successful capture onPermissionsDenied android null func Function to call when the Android permissions are denied
Thank you soo much :D Just one last question. Does this works wih expo?
dont works in yet, but I have plans to support Expo
Thank you soo much :D Eagerly waiting for expo support! Keep up the good work!
Does this support file saving after scanning or we have to use other library?