Where I have to start if I want to load only a part of an image or pdf. So I would like to render only a part from a pdf file. How can this be done?
I would imagine that you will need to work with images rather than PDF (or convert any PDF to an image first)
Some options:
1) You could build a viewer that sends the screen size coordinates and a point on the image that requires viewing to return only the part of the image required.
2) Have a look the iPhone seadragon app (free). This uses Microsoft seadragon and Deepzoom technology that you could look at to service large images for zooming. more info on seadragon here: http://www.seadragon.com/
Related
I have a webform with and want to open it on smartphone - than take pictures of some documents which need to be merged in one PDF, and on the end this file need to be uploaded to server.
My solution is to use Google Drive to upload PDF (scan) to GDrive and then somehow download this file from gdrive to server via some sort of widget (any links appreciate) installed on website.
Maybe someone have a better idea?
I know its late but my answer might help others. I also face the same challenge and implemented a custom solution based on Javascript and Since you are using web form so this solution will perfectly fits on your need.
You have to use JSPdf javascript library, JSPdf provide you pdf object in your browser and you can upload it download it and there are many other thing to play with.
First you have to initialize JSPdf object as per your requirement. I am creating PDF with page size width:500px and height 500px.
pdf = new jsPDF("l", "pt", [500,500]);
Simply when you will take picture from camera you will have each picture in form of base64, that base64 format you have to insert in JSPdf object
pdf.addImage(imgData, 'JPEG', 0, 0);
you can repeat the above code to add pictures from camera as much as you want, at the back-end these images are compiling and creating pdf document where each page have each images in sequence.
Once you are done, you can get PDF object in form of base64 object using below code that you can upload to any server.
pdf.output('datauristring')
above is only pdf part, you can find complete working example including camera part here Javascript Component to Scan Document
There is any possibility to upload a file with different sizes in DropzoneJs?
I'm using vue-dropzone which is made with dropzonejs and i have to upload the same file with different sizing for srcset.
Example:
I want to upload the file test.png which is 1000x500 px. There is any possibility to upload it at the same time in original resolution and also in 500x250px?
Image resizing in the browser has been a seat-of-the pants experience for a long time. Web assemblies are the way of the future for processing-intensive tasks in web apps. I came across this project the other day. It looks fantastic and I really can't wait to strip out our home-baked image resizing with canvas and replace it with this.
The usual reason for doing this is to avoid large uploads. It's a little bit weird to want to resize in the browser then upload the original. You might be better resizing on the server. You'll save bandwidth and the server libraries will be more mature than what's available on the client.
Along with the original image object you can add one more your custom resized image to the array of images by using resize config of dropzone. You can do the above on drop event or adddedFile event of dropzone.
i'm looking for pdf overlay feature to be implemented in iOS app, if whether its possible with libs free or even paid to have an touch overlay on PDF page within an app?
what i'm trying to do is i have a map which is train map and i want to have the map as pdf and any touch on station brings up info on each station.
is that posssible or what is other way to go forward open to every opinion!!!
i saw some other questions but none directed like this i.e.
Overlay Image above Embedded pdf
can any one tell me if its actually possible in objctive C code?
needs to work as offline app.
You can use Google Maps Static API (https://developers.google.com/maps/documentation/staticmaps/) to return an image on the map and then convert it to pdf.
I have one application that allows user to do various things like rotating and scaling an image and finally when the user clicks on save, the image should get saved on the server. Everything works out fine but the problem is since I am directly saving the WriteableBitmap after converting it to bytearray using WriteableBitmapEx, the saved image is also WriteableBitmap and so I am not able to view it using common Picture Viewer.
I want my image to be saved as a JPEG. How can I do this?
Hey Ankit, here is a sample by John Papa that shows how to save WriteableBitmaps to PNG's.
http://johnpapa.net/silverlight/saving-snapshots-to-png-in-silverlight-4-and-the-webcam/
He uses two options: http://imagetools.codeplex.com/
And: http://blogs.msdn.com/b/jstegman/archive/2008/04/21/dynamic-image-generation-in-silverlight.aspx
I would suggest the ImageTools route.
How to display PDF thumbnails in ASP page
There is no built in functionality for ASP to process and manipulate PDF files. You will need to install a custom component on your server, make sure your webhost allows this, or ask them for a list of installed objects as they often have ones that will do what you want.
A good free on is GFlax:
http://download.cnet.com/GFLAx/3000-10248_4-10327603.html
It will allow you to chop a PDF up into seperate JPEG files, and from there you can get the object to resize the JPEGs into different thumbnail sizes for your needs.
The GFlax documentation should get you started.
Have you looked at this? Mapsoft ThumbNails
you can use Ghost script sharp for displaying pdf thumbnail . Here is the code
GhostscriptWrapper.GeneratePageThumb(filepath, thumbnailPath, 1, 20, 20);