xfinium pdf unicode font not work in android in a Xamarin forms application - pdf

I've been spinning my wheels on this subject for a few days. I have Xfinium PDF in a Xamarin.Forms application I'm working on and I need to generate a pdf in different languages. So I have different .otf files set up as a PdfUnicodeTrueTypeFont. Now this works in iOS no problem, but in Android the PDF is generated blank if I try to generate it in a language that needs one of these fonts. I also have lost the ability due some other things going on in my work environment to side load to android or debug in android at all.

Make sure the font is embedded in the PDF (either by looking at the file directly or using an application to get information on embedded fonts).
If the font is not embedded it's possible that Android is failing to fallback to another font for some reason. Does the PDF open correctly Chrome?

Related

Unrecognised font family after backgrounding the app

I am using Noto Serif Medium font. Everything works as it should, when I launch the app with a fresh start.
The issue happens when I background the app and open anything that has not been rendered yet.
The classic "Unrecognised font family" error appears.
This error happens on iOS emulator and iOS physical devices.
I have checked targets, resources and Info.plist file in Xcode. Everything is there. Still this error happens.
I suspect that there could be an issue with the .ttf file itself, as you're not able to get this font from Google Fonts directly, even though it is a free to use font.
Is there anyone that can provide a lead to a solution?
This one was a dozzie.
Turns out, that it shouldn't have been working in a first place. It was a classical iOS font name issue. I don't know why it was working when the app wasn't backgrounded, but hey atleast the problem is solved.
Just use the PostScript name, not the real name tag in iOS fontbook.

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.

WinRT's WebView is not loading the .css file when running on an actual Tablet

I am using a WebView control under WinRT to display html pages that are loaded from a sub folder of my Assets folder. When I run my app on a Windows 8 PC or on the tablet emulator everything works fine. However, when I am running on an actual Surface tablet, the pages do not seem to be loading the .css file and are, therefore, not formatted properly.
Is there something that I am missing here?
Thanks
Verify that the CSS file is being included in the app you're running on the Surface. Create an app package and then look inside it. To be thorough, copy the app package to your Surface and run it there to verify that the problem still occurs.
Run the Windows App Certification Kit (WACK) tool to uncover common problems. This is just a wild guess, but maybe your CSS file has the wrong encoding, and this causes a problem on Windows RT. Really, this is just a wild guess.

problem while using tiff and gif format images with UIWebView

I have a web page using css and javascript and also this webpages have tiff and gif images. When i loaded this webpage locally in ipad it is not working as i can only see white page and not my images. But when i moved this folder to one of the server and when i tried to load this website remotely. I got this error:
"_CGImagePluginInitGIFmalformed GIF file (1024 x 748)"
But It is working properly. So i was wondering if there is any problem using the tiff and gif images locally?
Is it possible that there's really a error in the GIF?
If you're able to open the GIF in an other application, try to re-save it. It will probably fix the malformation. If it doesn't work try to save it in an other format. (Try OS X's Preview, it's good for these kind of things...)
The problem was with the javascript files which i moved to the copy Bundle Resources from Compile Sources.

Is it possible to include fonts in an app bundle and make them available in a UIWebView

I'm working on some HTML5 content to be included as part of an iPad app in a Web View and it requires some custom fonts which I was attepting to implement via CSS and #font-face
As I understand it, Mobile Safari only supports SVG fonts, but my testing has shown Mobile Safari to really struggle with SVG and the performance hit is a serious issue.
So... is it possible to put fonts in the App Bundle and somehow make them available to the webview?
Yes it is. Include the fonts in the App Bundle and in the app-info.plist use
"Fonts provided by application"
and provide the file name for each font.
Looks something like this...