iTextSharp removeUsageRights stopped working - itext

I've been using the code sample from iText in Action (8.7.2) to deal with the "cannot save" issue with PDF forms and iTextSharp. It was working fine, but recently the fix stopped working and all the variations of the code listed in the book to prevent the saving problem haven't solved it.
I'm using the latest version of the iTextSharp library. Has anyone else run into this? Did an Acrobat update break it?

works for me using iTextSharp 5.0.6, Reader X, and Listing 8.29 ReaderEnabledForm from the book. (it's the file named 'xfa_preserved.pdf' in the zip download)
IIRC the last couple of times i saw similar on the mailing list, the problem was specific to how the original PDF was created. if you subscribe, you can post the original PDF and hopefully one of the experts can take a look if they have time.

Related

iTextSharp 5: Create image from text

I am using iTextSharp (C#) to generate a few PDF-reports.
One of them creates a bill. The bill must contain one line in OCR-B.
I cannot embed the font file.
Since im doing the new reports after the old ones, I went to check how it was done in the old bill-report. They inserted a picture.
Seems like a good workaround.
I have been googling on how to render text as image using iTextSharp, without success.
I am open for suggestions.
Apparently, there is no iTextSharp way of doing this.
This approach worked for me How to generate an image from text on fly at runtime
That way I didn't have to include any 3rd party libraries.

AICC multi-sco not working as expected in moodle

I have been working with AICC Multi-SCO in moodle. The multi-SCO zip file contains 3 SCOs those are SCO1,SCO2 and SCO3. After importing into moodle, it showing only one SCO which is the last one(SCO3). I am using moodle 2.7.3 version, linux OS.
Please help me to figure out this problem.
Note: if i upload my Multi-SCO zip file into https://cloud.scorm.com/. It is showing all the three SCO properly in the listing menu.
Thanks,
Thavaprakash.
myCourse.CST appears to be missing a ending quote after "Developer_ID - see https://docs.oracle.com/cd/B31104_02/books/Training/Training_AICCSiebAdm4.html#wp999600
myCourse.AU don't see anything wrong.
Rest looks fine.
Been a long time since I had to play with that. Thanks for the refresher ;)

Printed documentation from Sandcastle

We're using Sandcastle for conceptual documentation and have clients that we would like to give documentation to in a non-CHM or HTML form, i.e printed. It could be Word or PDF, something simple to attach to an email. The use case usually involves someone wanting to send along a topic.
The best we've been able to do is to print from the CHM viewer or to PDF from Chrome when viewing the HTML. These have issues in that they remove anchor element clicks, turn images black and white, etc.
There's a thread on the SHFB discussions on Codeplex stating that there isn't any known alternative - http://shfb.codeplex.com/discussions/260489. I'm re-posting the question here in hopes to get more input and visibility.
I had the same need some time ago and came to the conclusion that using a CHM to PDF converter is the best recourse. I could not find one that was open-source though many have trial versions available, and I only needed to convert one document so that served my needs at the time. Note that trial/demo versions typically add a watermark or a label blazoned across the page saying "unregistered version" or some such.
A general web search reveals quite a number of candidates: while I cannot vouch for any, here are a few that seem reputable: Universal Document Converter, Theta CHM To PDF Converter, Softany CHM to PDF Converter.
2014.07.16 Update
Per #J0e3gan's comment, here is a different online converter (limited to 100MB CHM input) that looks quite promising, though I have not yet had occasion to try it.

Integrating xPDF in an IOS? (feasibility checking)

I am developing App in which PDF text searching & highlighting is needed. I found like its very difficult to highlight in PDF. So i thought to convert PDF to HTML then by using java-script, Search the string & Highlight it. Actually i got success in searching & highlighting on HTML text using java script.If any1 need source code send your email id.
But my obstacle is PDF to HTML conversion. I know it is very hard,bcoz PDF is enrich text & HTML doesn't support all the features. In between i got some source code in Python i.e. PDFMiner. With out jail breaking its hard to use Python in IOS. So i dropped this idea also.
Now i m looking on xPDF, its C++ based code to convert PDF to HTML. Did any1 got success over integrating xPDF into your IOS app. I want to know feasibility of this.
Thanks in advance for ur thoughtful reply,
Naveen Thunga.
Here you can find an example. Still has some problems, but is a good start:
https://github.com/KurtCode/PDFKitten

Importing existing pdf into new document

I am trying to use iTextSharp to build a new pdf document, that will contain some already existing pdf's. I can import existing jpg's without a problem, but i am struggling with pdfs. Anyone got any info to point me in the right direction
Cheers
Luke
Do you need to append PDFs to an existing PDF? If so, check out the class here:
http://www.wacdesigns.com/2008/10/03/merge-pdf-files-using-c/
You'll need to spend a little time correcting minor errors, but otherwise the class is working fine for me.
For info i managed to use iTextShape in the end, if anyone would like some info i will be happy to post it