Ghostscript strips Alt Text - accessibility

I work with an app called ICMS (Integrated Case Management System), and documents are submitted to this app in .docx format. Many times they need to include images and we require "Alt Text" to be added to each image. Once the document is added to ICMS I can see the Alt Text is still there, but when the document is signed by an admin user the document goes through a conversion from .docx to pdf. From my understanding ICMS is using Ghostscript for that conversion and when that conversion happens, it strips/deletes the Alt Text. Has anyone had this issue before? Are there any kind of DocStructureTags within Ghostscript that are possibly set to False? If so, where can we find them? Any insight would be appreciated. Thank you.

Related

How to Open PDF in Browser and modify it and save it?

I am thinking about opening a PDF file with some editable fields in the browser , by which i can modify the PDF file / fill information etc and then save that PDF FORM
Please guide me in a right direction ?
I think in your case Rad PDF can work. It is a PDF Viewer and Editor for ASP.NET by which you can open the PDF with editable fields in browser and can even modify the PDF and save it.
Check the link:- https://www.radpdf.com/demo/easy-integration/
and another one is below:-
https://code.msdn.microsoft.com/PDF-Editor-to-Edit-PDF-5fb73b8d
Hope it will work in your case.
Thanks
You cannot. Simple.
PDFs are edited by the native app, in your case may be Chrome, Safari and Internet Explorer. You do not have control on anything that happens when the user edits the PDF in a native app context.
Pdf documents come in many flavors (standards). One of them (FDF) matches your usecase very closely. This particular standard allows you to edit a pdf form, on completion (or some other event) it would send the data back to a server, collect a response, and modify the pdf with the incoming data.
Keep in mind though that this standard is not often used. There may be a good reason for that (not a lot of libraries support it).

How to translate the text on a picture with google?

I'm not sure if this is the correct part of SE to ask this question but here it goes.
If I would encounter a picture file with unknown text, I could take another picture of it and get it translated with my phone by using Google Goggles, but how would I be able to translate it on my computer? I tried entering the picture link to Google translate, but it said it wasn't able to open the file.
This isn't about a programming problem, so your question is probably in the wrong section.
However, what you're looking for is an OCR service. Use it to extract the text from the image first, then translate it.
The problem to extract the text from a picture is referred as "Scene Text Recognition" in computer vision. If the image is a picture of a pdf/document, the text can be extracted using OCR with quite good accuracy.
But if the text is present in a picture (like picture of a traffic board), the OCR may not always work. In this case you can use some computer vision APIs provided online, for eg:
You can use the Google Vision API and paste the image link in the "Try It" section to extract out the text.

Disable toolbar or right-click when viewing embedded PDF online - is this possible?

I have a WordPress blog that has a hyperlink to a PDF report. The user clicks the link and the report PDF opens up in another tab. When it opens up in another tab it uses whatever PDF software is on the local machine (e.g. for me it uses Adobe Reader to view the PDF online).
Is there any way at all that the ability to then select the PDF text, right-click, Copy and then Paste it in to a Word document or such (effectively stealing the information) can be stopped in some way?
On the same page that has the highlighted text mentioned we also have a link to download the entire report which is said PDF. When this is done, because the PDF was secured in Acrobat before being uploaded to WordPress if someone tries to edit the text then they cannot as the restrictions are in place - but why are the restrictions not in place when the PDF is viewed online?
Any assistance or advice on how to protect the PDF contents when viewed online (I realise it may not even be possible but I am open to suggestions) would be greatly appreciated.
You can start by modifying the security properties on the document itself. I'm not sure if you can do this with Adobe Reader, but I know you can do it with Acrobat Pro. Here's an article that describes how to disable copy/paste, printing, etc. etc. I tested in IE8, FF, and Chrome -- it looks like the permissions are honored.

Adobe Livecycle ES3 saving issue - file keeps getting larger

I have been working on a form in Adobe Livecycle ES3.
I started with a file that was approx. 1 MB in size.
I realized that every time I saved the file it got larger by approx. 1-2 MB.
This happens even if I just save the file as a new name without doing any editing.
I ended up with a 45 MB file size and I really did not change that much to the form design.
I am new to this program, and cannot find anything online to explain this behavior.
I am thinking that the program is saving some kind of history buffer?
Any help would be greatly appreciated.
Edit to Answer Questions asked below:
1) The form is stored locally
2) The only option is to save as a PDF. The form is based off of a PDF imported document.
3) Can I change to XDP when it is imported background artwork?
4) The XML does not appear to be doubling up info.
I found an article yesterday that talks about the file size growing each time you save it with Livecycle. The adobe guy seemed to say that it was life and that there was nothing you could do about it. Seems a little weird to me. I don't know if I have really given you anything new here. I am very frustrated with it.
Thanks
SUB
To start off, I need to ask you if your form is stored locally on your machine or are you editing a copy of the form saved on the LiveCycle server itself ?
If your form resides on the server, download a copy of the form on your machine and try your tests on it to see if the file size increases every time you save it on your machine. Do let me know how your tests go in this scenario.
If you are working on a form design on your machine, are you saving your form as a PDF or an XDP ?
If you are saving your form as a PDF, save it as an XDP.
If you are saving your form as an XDP, open it up in either the XML editor in LiveCycle designer or just use a text editor to view its contents.
I have seen issues in the past where (and its a bug btw) LiveCycle Designer repeats the same design time XML tags mulin the form. If this is the case in your form, you can simply do a find and replace to remove them.
Hope this helps. Please let me know how your tests go and if you have any more questions about LiveCycle.
Thanks,
Armaghan.
I have seen this issue quite often, in fact today I had a file which jumped from 1.5mb to 188mb.
Having gone through the Adobe site it appears that there is no definite reason for it, but it appears to happen more when you embed fragments into the form or are using a lot of tables.
Anyway the quickest fix is to go into the XML view and search for 'aped' This will usually find a line with something like:
Simply do a find/replace on the full line (leave the replace with blank).
Do this for:
Once complete go back into design view and save it. You should see the file size decrease.
I experienced the same issue. I found a way around it, but you need to have a copy of the original file.
1. From the bloated file, copy the XML from the XML Source window in LiveCycle Designer.
2. Open the original PDF in LiveCycle Designer.
3. Replace the XML in the XML Source window with the XML on the clipboard.
4. Save.

Issues with Exported Crystal Report to Word Document

I am having a minor issue playing with my exported Crystal Report, I can generate the reports just fine on our website, however when I attempt to export them to Word documents I don't quite get a document I can do much with.
i.e.:
I can't position the generated text anywhere in the document, it is almost 'frozen' in place. I would expect if I moved the cursor above the report text and pressed Enter a bunch of times I could remove the report down the page, however it just won't budge
All the text seems to be in its own box and I can't move it around or do anything with it.
Any thoughts? My expectation would be once it is exported to Word I could play with it like a Word document, move the text down the page, edit the document, do something with it.
Thanks!
btw, this question is similar to the one posted here, but this one wasn't tagged properly and I don't have enough karma to fix it:
https://stackoverflow.com/questions/434381/word-formatting-not-intact-when-exported-from-crystal-reoport
I'm afraid that you can't do much about it. Crystal Reports is very much orientated towards putting data in fixed positions on pages, so when it exports to Word it puts its data into text boxes because that's a similar thing that Word offers. You could make the Crystal Report page consists of a giant text field and using spaces and newlines to get the data into the right place, which will probably then give you a giant textbox in Word.

Resources