I want to copy the text of an embedded PDF file in my project to an NSString.
I tried Zachron's pdfiphone but it doesn't seem to be working on armv7. I need it to work on armv7.
I've read some the Quartz framework guide, but I still don't know how to get the text of a PDF using Quartz. If you know the solution, with Quartz or not, please write it down.
If your target PDF is not written in CJK(Chinese,Japanese and Korean), your way is simpler one.
Download PDFKitten. It has a sample PDF parser.
Integrate PDFCore part of PDFKitten into your project. Please note that PDFKitten is pre ARC code. So you have to set -fno-objc-arc to all PDFKitten files.
In PDF, printing text operators are TJ and Tj.
So you have to modify call back functions for TJ and Tj.
If you have to handle CJK PDF file, your way is more complicated. Because many CJK PDF file has CID encoding. CID means character identification for glyph. PDFKitten does not cover such handling. You have to add CID to UCS2 conversion function.
Related
I've been trying to edit the lua files for the game victor vran (made by developers of the tropico series) but when i tried to decompile the files i'd get back errors. So i opened up some of the files in both notepad++ and luaedit, and noticed the first string of every file was lz4 which I automatically associated with compression. After a quick google I found the lua rocks lz4 module. With that i tried to decompress some files but couldn't really wrap my head arround it.
If anybody could give me some tips to point me in the right direction/tell me where i'm going wrong, or even take a quick look at the files i'll link to below, to give me advice on the matter I'd be greatly appreciatave. I will include 2 types of lua files from the game, ones with the lz4 string and ones without. thank you so much in advance, ifanybody needs more information on the files or the steps i took ask away
.lua files with "LZ4" as first string https://drive.google.com/open?id=0B042ggDJxSmJaTJ2Z1l4RTkzUHc
.lua files without lz4 as first string https://drive.google.com/open?id=0B042ggDJxSmJa2VNcjQxVC1TZ1k
I am facing a problem. I am working on an app which is supported around 30 languages. I have tried google toolkit translate (https://translate.google.com/toolkit/ ) but it is not working properly. For example let assume in .string file I have 40 lines of codes. If I translate language using google toolkit then it converts just 4-7 lines sometimes 8-9 times and so on. Others all lines it skips. Please let me know how can we translate English language in multiple language (around 30) at a time. Please share Any tool name or site name. Thanks guys.
Here is a project which can convert your localization.strings file to any language using google translation api.
You just need to copy paste all the data of localization.string file into a txt file. and add that txt file in app bundle file and specify file name in Constants.h file. Also mention the google translator api key. You can also mail the translated file.
Localization using google transtion iOS Project Link
I'm trying to see how does certain ios apps executable files look like, what i do is export the app files to my computer using iexplorer, i then took a look at the info.plist to see the executable files, after that i opened them with my notepad to use the UTF - 8 Encoding, but here how does things look like in both files-in the opening of both of the files i see english words that are expressing directories:
sample of file 1:
‹"Ò.(?!ÑNÓU£C°îXjøe”Ú5O•½°{^ÿÝŒEÌrôðæ$#[3,ÔÜ£æ»8I˜hGw!*aHÒQ•tœl²þ„™AÍçßÍ憴³)è:cÌ7H5æß-eFç¯î&Ø\n,$Ë$y»¥ÁB^6ÙP; i(q,AÅ
âðð·'©=Ÿa"v!PBÛÚ"¤¬‹Wj·;ËsÌŽÚâZüŠ–ÇüÉ;ÜA´sI«¸Üæ¿÷ ›‚‰.êøLž
sample of file 2:
ßꪧgö«húDªÝn¡±CÅÁ¹ â=؉ˆ4|®b¡ JeW-ɯðó¦xgýgeéÀXœH7ßJÉ" 3‡rÜ6ÒI_ ƒr cdÅá¸|íð¼l;Töl±”›MÛ˜±o/ôÇô#¬RS;Y¥!ÜzGò“vî©6ØR¡‚>Ì0m5
ŸzrPÐiDMÊ|Þ·9âëYß,p؃‹£x—.àN5îüÝrjœG]Æ·
ironically in the second file i can see a huge block of english words absolutely fine, but i dont get it why i don't see the whole file very good? i have also tried to open the files in an objective-c compiler after i have made them .m but that again was useless???
The executable files contain machine langage (binary) and cannot easily be read or understand by human. The word you still see in english are probably comments left by compiler that are not executed.
Trying to open those files in a compiler won't work because if the compiler role is to convert objective-c in machine langage, he's not able to convert the other way. For a same set of machine instructions, there are many ways to code it in objective-c.
The only way to get a source-code from a binary executable is to do some retro-engineering. It is done by converting the binary executable in assembly langage (it's a very low level langage but with understandable syntax) and then trying to reproduce the instructions with a higher-level langage such as objective-C.
Hello stackoverflow community..
Currently I'm developing a Crossplatform-App (android/iOS) which generates beside its other features pdf-files from user-content.
This works well with the help of jsPDF.
The output of this awesome library is an base64 encoded string of the binary PDF-File.
(see this issue of the creator about the 'binaryness' of pdf files under different circumstances on github).
Now my actual problem:
I need to save this base64 as a proper decoded binary file for further usage on different aspects of the system (mailing it, printing it, a.s.o.).
For Android there is a Plugin that does a similar thing with images. My current plan is to modify and publish it as a more generic plugin for saving base64 encoded to a file.
Problem is now, I cannot find a similar code for iOS, and since I have literally no experience in Objective-C (plenty of Java, ruby, javascript and c though), I'm not able to produce such a plugin in short time.
Do you guys know a plugin of this kind, which can be modified with little Objective-C knowledge.
Perhaps there is someone interested in developing this kind of plugin and we cut could a deal (the project I'm working on is commercial)
Hope to hear some interesting responses, because I'm running out of ideas here :D
Greetings
Jakob
Is there a free alphanumeric barcode font or class that is compatible with Delphi "PowerPDF" component ?
code must be code128.
There is no such thing, as PowerPdf has never supported any fonts other than the 14 Standard Type 1 Fonts (see the source code). There is no support for TrueType fonts, font embedding or such.
What you can do is switch to the successor of PowerPdf, the Haru Free PDF Library. This supports encrypted TrueType fonts, font embedding and a few encodings other than the PDF WinAnsiEncoding. There are Delphi bindings. Together with a TTF that supports your barcode you should be able to make it work.
Not a barcode class, but a GPL'ed TTF which can be embedded into your PDF file:
http://grandzebu.net/index.php?page=/informatique/codbar-en/codbar.htm
You also need an encoder, because you can't just type your characters with this font. But the VB6 and Excel encoding examples on that page can easily be transfered into Delphi code.
As a tiny addition:
I used this page to generate EPS barcodes (which can be embedded in PDF).
Actually: I wrote a small article on how to use this to generate a lot of EPS files using one small example.