How can I make PDF files in a Unity WebGL build? - pdf

I am in the process of making a Unity WebGL App and I would like the user to be able to download a status report which pulls-in info from the app.
So far I have tested SharpPDF with which i am able to generate a pdf in the editor and standalone builds but not in the webGL build.
Any ideas
Thanks

You could make a jslib and use something like pdfkit.
https://docs.unity3d.com/Manual/webgl-interactingwithbrowserscripting.html
https://www.npmjs.com/package/pdfkit

Related

Add Bundle Version and Build to splash screen using PhoneGap

Using the latest PhoneGap what is the best guidance someone could give as to adding the Bundle Version and Build Number overlaying a PhoneGap Splash screen. I see this on other apps but most likely those apps may not have been built with PhoneGap. From what I have read you could use a UIView controller to do this to the didFinishLaunchingWithOptions method. I am not an Objective C coder and native apps are new to me so any guidance as to where to start would be helpful. I am on El Capitan using xCode 7.1.1. Is there a tutorial of sorts to getting this done? Is it a lengthy integration? Thanks for the help!
I haven't implemented this but have thought about it a couple times... one way of getting a cross platform solution might be to stamp the bundle / app version or whatever other information you want dynamically added to the splash using ImageMagick, and the Cordova hooks system to run a script each build to do this. We have done similar with a script that sets the version numbers in config.xml for Jenkins builds, so that we can associate Jenkins output with test builds. I would imagine the same mechanism could be used with the Annotating capability of Image Magick to have a platform independent way of achieving this.

Calabash Automation Testing

I am new in Automating the apps for testing Android and i like to advance to this level... I have researched for Appium and Calabash... but knowing the difference pretty complicated.. There are my questions:
1: For Calabash, do we need the source code, i mean can i have APK and give test cases and so on? or do I NEED the source code even if im using the elements from app?
2: I heard i can use the Appium with cucumber, and same question do i need source code for that?
I have researched about it and all i get is for Apple apps... but nothing much for android...
You don't need source code. All you need is apk file, packageName and ActivityName to launch the app.
In Appium framework, all you need is app file (for android it will be simply .apk file).
Source code will be never needed, all elements from UI that you would like to interact with, can be simply get from Appium Inspector.
For both calabash and Appium you don't need to source code. you can automate application using apk file.
Yes you can use Appium with cucumber.
To find object locators of application use calabash console and Android UI Viewer, Appium GUI.

How to avoid reverse engineering of an apk build with Appcelerator?

I am developing a schedule app using Appcelerator, and I want to prevent a hacker from accessing any resources, assets or source code from the APK file.
If someone changes the .apk extension to .zip then they can unzip it and easily access all the app's resources and assets, and using dex2jar and a Java decompiler, they can also access the source code. It's very easy to reverse engineer an Android APK file.
Is there any functionality available in titanium SDK that prevent reverse engineering? I am using Titanium SDK Version 3.4.1.GA I tried following code but nothing works
<property name="ti.deploytype">distribution</property>
<property name="ti.android.compilejs" type="bool">true</property>
You'll drive yourself crazy trying to protect your code from someone determined to get into it. Generally, Appcelerator is getting you the ability to convert your code from JavaScript into something that resembles a mix of native with JavaScript controlling logic. If the Android platform doesn't accomplish what you want, I don't believe Appcelerator is attempting to do it either. I believe the JavaScript that doesn't get turned into native code is being obfuscated. I'm pretty sure that the Appcelerator project gets turned into an Android project. Perhaps you'll want to look for protections at that level and compile your app with the Android SDK tools.

Implement pdf.js in Apache Cordova

I am trying to develop an Apache Cordova Application with Visual Studio 2013 for Android, using Typescript. I am unable to display my PDF. My program begins by downloading the PDF file to the Android Device from a website. After this though, I am unaware as to how to use pdf.js to display the downloaded PDF. I tried looking at the examples and implementing them on a HTML file in IE, but I've been unsuccessful with all attempts to display any kind of PDF, so a sample that works, but not on Android is also appreciated.
so a sample that works, but not on Android is also appreciated.
The PDF js hello world : http://mozilla.github.io/pdf.js/examples/learning/helloworld.html You can open it on android too.

PhoneGap Build integrated with Dreamweaver CS6 is different than CS5.5, how can I change the assets/www folder?

I used DW5.5 to build a PhoneGap application before, and it was easy to access all of the files within the app to integrate such things as native API functionallity etc...
But now I am using DWCS6, I cant seem to locate the whole app folder structure. All it does is compiles the app to an .apk file (android) and you download it. Am I missing something here?
I am using jQuery mobile and PhoneGap within Dreamweaver CS6 and just tried to test the native API from phonegap, and just cant seem to get it to work. The examples online show the usage of a cordova.js file (which I know is what used to be called phonegap.js or whatever) but the native fiunctionallty doesnt seem to be working.
Any thoughts?? I have been on it all day now so its likely im missing something simple as my head is fuc***.
Thanks :)
I suspect it is Adobe's way of forcing users to pay for their compilation service. AFAIKT, the ability to compile native apps using external programs like Xcode or Eclipse has been removed. I use Dreamweaver 5.5. The issues with mobile app development have been fraught with problems, but, at least, you could find work arounds. I'm hoping that some enterprising CS6 user will find a good workaround for those of us who don't have $$$$ of dollars to buy adobe products, and then more $$ per month to compile the code. Personally, I'm looking for other options. I saved for months to buy cs5.5 and it has never operated as advertised. I found workarounds for Xcode, but nothing for Android. I do like some things about the design/code piece of Dreamweaver, but all in all, I've been disappointed in the product for mobile development.
Keep us posted on your progress.
Thanks.-Rachel
Have you tried copying the Site files from Dreamweaver Source Folder to Eclipse www/assets folder and running it on Android Emulator. This worked for me, at least for simple Hello World index.html file, but it is not working for 5 page - HTML site developed in Dreamweaver CS6.