I have been searching the web however I have come up empty so felt the need to ask. We want to render a PDF file on iOS, Android and UWP through Xamarin Forms and the most important part, from a Stream.
I have come across answers like this however they just reinforce the notion of loading from a file or url.
We are not allowed to store the PDF files unencrypted on disk so the only 2 possible options I can see are to:
Find a viewer that can render from a Stream
Implement/expand a viewer that can render from a Stream
I haven't been able to find much based on these options so I am either hoping for someone to know of some framework or method of achieving this or at least some form of starting point library wise.
PDFTron PDFNet SDK is available for all the listed platforms, and Xamarin, and supports opening and viewing a PDF from a stream (no disk access required).
https://www.pdftron.com/pdf-sdk/xamarin-library
https://www.pdftron.com/documentation/xamarin/guides
While PDFTron was the only supplied answer I encountered great difficulty firstly getting any information from the company themselves in order to get costing information and secondly the trial downloads and samples wouldn't even compile.
I actually did some further research in to paid for solutions and found that SyncFusion offered a PDF viewer control that could also render from a Stream. They also provided answers to all my questions and got us up and running within less than a day.
Related
We're developing a react native mobile application where we need to generate several different types of graphs (plots, charts, line, etc.) and then convert those graphs into PDF format where we could download or send the graphs as pdf files outside the in-app visualization/rendering of them. Currently we are using react-native-chart-kit, and haven't been able to come up with an easy solution yet. We are open to using a different library if one exists that has similar graphing capabilities to that library and can easily generate pdf's from the graphing data. At the moment, all we can think of doing is to send the graphing data to a web server where we have access to other graphing libraries (js, react web, python, etc.) generate the pdf data then send it back to the mobile application. This isn't ideal, as we'd prefer to do everything directly in the mobile app.
Does anyone have any experience generating graphs within a react-native application and also exporting those graphs as pdf files? Any library we might have overlooked, or an easier solution we haven't though about? Any tips are greatly appreciated!
Not a lot of hits here, but I also cross posted this on reddit and got some traction. I'm posting a link here as the answer in case anyone else comes across this post:
https://www.reddit.com/r/reactnative/comments/v1wm0o/generating_a_graph_and_converting_to_a_pdf_within/
The two best answers we debated between (both valid):
You could potentially use https://github.com/gre/react-native-view-shot. It will “screenshot” anything within a particular View and you can then do what you want with the image data. Perhaps even find a way to write it to a PDF file?
and the other solution is to just do the pdf rendering and graph generation on server-side, though that means this would be an online only feature.
According to their website (http://www.gdpicture.com/products/managed-pdf/) you have the ability to extract fonts from a PDF file. However, I can't seem to find the functionality to do this. I have encountered several methods to add them, but none to extract them (and they don't show as embedded files). Has anyone tried to do this, or have experience with GdPicture?
Version: 14 (Current)
Disclosure: I am part of the ORPALIS technical staff that edits the GdPicture.NET SDK, that's why I know there's an ongoing communication about this already.
It is my understanding that you have a support case open for a merging issue relative to fonts and as you know, our development team is currently working on a fix that will solve it so I strongly recommend that you wait for them to finish.
There's no extraction of the embedded font as you might expect at the moment but the development team is also working on one, we will let you know as soon as it is available (it should be very soon).
You can get information about (already) embedded fonts using the GetFontCount, IsFontEmbedded, GetFontName and GetFontType methods.
You can also add new embedded fonts (of different types) using the AddFontFromFileU, AddStandardFont, AddTrueTypeFont, AddTrueTypeFontFromFile, AddTrueTypeFontFromFileU and AddTrueTypeFontU methods.
I want to implement an iOS application which views PDF files. I have used vfr/Reader in some other applications before. But now i need to display multimedia supported PDF files on iOS which include videos, animations etc. My customer create these PDFs by using InDesign.
I made a research and can not found a proper iOS based framework to achieve this. There are really limited number of solutions like Adobe, FastPDFKit etc but they are so expensive and there is no "one time fee" option.
Do you have any open source suggestions or the ones with lower prices?
EDIT: Made a research for days and days but there is no solution. Is there any other tool to create interactive ebooks or magazines? May be HTML5 or something with editor itself???
I have used QLPreviewController before to open local PDF files and it works great and it not hard to implement-- and it supports multiple documents.
Heres a good tutorial that I followed:
http://mobiledevelopertips.com/data-file-management/preview-documents-with-qlpreviewcontroller.html
I have not tested viewing videos or anything-- the PDFs I had were simple. But it is an Apple control and has all of the basic PDF viewing functions like pinch to zoom, but like I said my PDFs only had text but it is worth a shot to try.
After a long long research and discussions, unfortunately there is no free solution with these features. There are only paid solutions and Adobe Publishing Suite takes the head although it is one of the most expensive solutions
I have searched using many different terms and phrases, and waded through many pages of results, but I have (remarkably) not seen anyone else addressing, even asking, about, this issue. So here goes...
Ultimate Goal: Allow a user viewing a content-based page (may contain both text and images) within a Windows Store app to share that content with someone else.
Description
I am working on taking a fair amount of content and making it available for browsing/navigating as a Windows 8/WinRT/Windows Store (we need a consistent name here) application. One of the desired features is to take advantage of the Share Charm, such that someone viewing a page could share that page with someone else.
The ideal behavior is for the application to implement the Share Source contract which would share an email message that contained some explanatory text, a link to get the app from the Windows Store, and a "deep link" into the shared page in the application.
Solutions Considered
We had originally looked at just generating a PDF representation of the page, but there are very few external libraries that would work under WinRT, and having to include externally licensed code would be problematic as well. Writing our own PDF generation code would out of scope.
We have also considered generating a Word document or PowerPoint slide using OpenXML, but again, we run up against the limitaions of WinRT. In this case, it is highly unlikely the OpenXML SDK is useable in a WinRT application.
Another thought was to pre-generate all of the pages as .pdf files, store them as resources, and when the Share Charm is invoked, share the .pdf file associated with the current page. The problem here is the application will have at least 150 content pages, and depending on how we break the content down, up to over 600. This would likely cause serious bloat.
Where We Are At
Thus we have come to sharing URIs. From what I can tell, though, the "deep linking" feature is only intended for use on Secondary Tiles tied to your application. Another avenue I considered was registering a protocol like, "my-special-app:" with the OS and having it fire up the application but that would require HKCR registry access, which is outside the WinRT sandbox.
If it matters, we are leaning towards an HTML/JS application, rather than XAML/C#, because the converted content will all be in HTML and the WebView control in WinRT is fairly limited. This decision is not yet final, though.
Conclusion
So, is this possible, and if so, how would it be done or where can I find documentation on it?
Thanks,
Dave Parker
I've been asked to investigate the feasibility of adding watermarks to documents when printed through our application. The documents will consist of word, pdf and cad.
The interface of the application is vb6 with a plethora of vc6 dll's.
I can see a couple of possible solutions:
Convert all documents to PDF, add a watermark and then print.
Find a print driver that will add a watermark to all documents prior to printing and install it and reenable it at runtime if it gets disabled for any reason.
3rd Party suites are possibility (we use Volo View Express for viewing CAD files) but since this application is nearing end-of-life we wouldn't want to spend too much on it.
Has anyone had any experience of the above? Any gotcha's that will bog me down?
Tracker Software has a good set of PDF api's that that will allow you to implement the solution you already have in mind. I've used their Image and PDF libraries quite a bit with a lot of success in both VB6 and .NET. Single user licenses are not expensive (depending on how you look at it I guess), and I've found support to be excellent as well.