Join us for an engaging webinar, as we unravel the potential of AI for revolutionizing document management.
Watch Now
Enable your employees to remain productive throughout the document management process.
Read More
Learn how SmartZone uses a regular expression engine integrated into the recognition engine to achieve the best possible accuracy on data that can be defined by a regular expression.
Docubee is an intelligent contract automation platform built to help your team success
When selecting download and including annotations, the resulting PDF does not include the comments. How can we obtain the file as a PDF with the annotation comments included?
By design, when using the download button, the comments to the annotations are not included in the download.
Workaround
Is it possible to make a call to an external API when annotation saving is complete?
In the Viewer, you can bind functions to the MarkupSaved event mentioned on the following documentation page in order to execute code when annotations are saved to the server:
MarkupSaved
https://help.accusoft.com/PrizmDoc/latest/HTML/webframe.html#Subscribing_to_Events.html
A full list of events exposed by the Viewer can be found here:
https://help.accusoft.com/PrizmDoc/latest/HTML/webframe.html#PCCViewer.html#.EventType
Normally, when I create a viewer in my own application, I do:
viewer = $("#some-div").pccViewer({ ...options });
Then I can make calls like:
viewer.viewerControl.search("Some search term.");
But in the legacy samples the Viewer isn’t set to a global variable. How can I access the viewerControl object?
If you call $("#some-div").pccViewer(); without any arguments, it will access the existing Viewer in the relevant <div> instead of creating a new one. For example, in the WebForms sample, var viewer = $("#viewer1").pccViewer(); will create a reference to the sample’s existing Viewer.
$("#some-div").pccViewer();
<div>
var viewer = $("#viewer1").pccViewer();
Does PrizmDoc have a limit to the size of file that can be viewed and edited?
PrizmDoc does not have a limit to the sizes of files that can be displayed and edited. However, do keep in mind that the web server on which PrizmDoc is being hosted may have a limit to the maximum size of files that can be uploaded to it.
The webserver max upload file size would therefore serve as PrizmDoc’s max supported file size when it is hosted on that server.
I would like to remove the mark selection handles from the marks (annotations and redactions) in the viewer so that my users can’t resize marks, but so they can still move the marks around. How can I do this?
The easiest way to achieve the functionality you’re looking for would be to simply change the CSS for the mark handles to set their display to none !important. The CSS for the mark handles can be found in viewercontrol.css. See the following code for an example:
display
none !important
/* mark selection handles */ .pccMarkHandleTopLeft, .pccMarkHandleTopCenter, .pccMarkHandleTopRight, .pccMarkHandleMidLeft, .pccMarkHandleMidRight, .pccMarkHandleBottomLeft, .pccMarkHandleBottomCenter, .pccMarkHandleBottomRight, .pccMarkHandlePoint, .pccMarkHandleTextSelectionStart, .pccMarkHandleTextSelectionEnd { position: absolute; width: 40px; height: 40px; display: none !important; background-image: url(data:image/png;base64,iVBORw...); } @media screen and (-webkit-min-device-pixel-ratio: 2), screen and (min-resolution: 2dppx), screen and (min-resolution: 192dpi) { .pccMarkHandleTopLeft, .pccMarkHandleTopCenter, .pccMarkHandleTopRight, .pccMarkHandleMidLeft, .pccMarkHandleMidRight, .pccMarkHandleBottomLeft, .pccMarkHandleBottomCenter, .pccMarkHandleBottomRight, .pccMarkHandlePoint, .pccMarkHandleTextSelectionStart, .pccMarkHandleTextSelectionEnd { -webkit-background-size: 40px 40px; background-size: 40px; display: none !important; background-image: url(data:image/png;base64,iVBORw...); } }
You will want to set the !important flag so that the functions inside viewercontrol don’t set the display back to block.
!important
block
One thing you may want to do is separate out pccMarkHandleTextSelectionStart and pccMarkHandleTextSelectionEnd to not include display: none. This way, the text selection annotations are able to be edited, since they are reliant on the handles for "movement" because they select a portion of the text signified by the handles.
pccMarkHandleTextSelectionStart
pccMarkHandleTextSelectionEnd
display: none
How does the PrizmDoc print function work exactly?
Every page of the specified print range is being loaded and sent to the printer. This occurs in an iframe separate from what is shown in the Viewer so the user does not actually see this happening.
The actual method being used is one of the following, depending on the browser:
_iframe.contentWindow.document.execCommand('print', false, null);
_iframe.contentWindow.print();
PAS appears to be unable to retrieve my document. What could be the issue?
If PAS is trying to retrieve documents from a source with a bad SSL certificate or a self-signed certificate and it is not configured to allow bad SSL certificates, it will fail to retrieve the document and log a generic 580 error.
For more information about Viewing Session creation parameters, including acceptBadSslCertificate see here:
acceptBadSslCertificate
https://help.accusoft.com/PrizmDoc/latest/HTML/webframe.html#pas-viewing-sessions.html
In the past I have had some issues installing PrizmDoc Server and Client and I was curious if PrizmDoc create logs during the install? If so, where would they be located?
Yes, PrizmDoc does keep install logs to help troubleshoot failed installations. These logs can by found in the following folder:
C:\Users\{UserName}\AppData\Local\Temp
All of the install log’s names will start with PrizmDoc_Server or PrizmDoc_Client.
If you do not see any logs in that directory, it could mean your Windows Temp directory maybe mapped to another location. You can find that location by doing the following:
Right-click on the Windows Icon in the lower left hand corner of the desktop.
Select Run.
In the Open: box, type %temp% and click OK.
What are the technical details/process of “Flattening” a PDF document?
It is possible to “Flatten” PDF documents in PrizmDoc Viewer. You can do this by converting the document to a raster format (TIFF is recommended for PDF conversion) using PrizmDoc’s Content Conversion Service, and then converting it back to PDF format. This will result in a PDF with a single layer and no hidden objects. However, this will usually lower the quality and increase the file size of PDFs that are largely text.
Here is an example workflow using the Workfile API and the Content Conversion Service API:
1. Create a WorkFile from PDF
POST {{pccisUrl}}/PCCIS/V1/WorkFile Content-Type: application/octet-stream {{file bytes}}
2. Initiate Conversion to TIFF
POST {{pccisUrl}}/v2/contentConverters Content-Type: application/json { "input": { "sources": [ { "fileId": "{{fileId}}" } ], "dest": { "format": "tiff" } } }
3. Poll until response[“state”] === “complete”
GET {{pccisUrl}}/v2/contentConverters/{{processId}}
4. Initiate Conversion from TIFF back to PDF
POST {{pccisUrl}}/v2/contentConverters Content-Type: application/json { "input": { "sources": [ { "fileId": "{{fileId_from_Step3_output}}" } ], "dest": { "format": "pdf" } } }
5. Poll again
6. Download
GET {{pccisUrl}}/PCCIS/V1/WorkFile/{{fileId}}?ContentDispositionFileName={{desiredFileNameWithExtension}}
Why does my markupBurner call with XML data get an InvalidJson error?
The MarkupBurner accepts two types of payloads, XML and JSON.
When making a call to the markup burner with either type, you have to specify what kind of payload you are sending by specifying a Content-Type header.
For more information on MarkupBurners, see here:
https://help.accusoft.com/PrizmDoc/latest/HTML/webframe.html#pas-markup-burners.html
What causes Session Expired errors in PrizmDoc?
Session expired errors normally occur when a viewing session is open for longer than 20 minutes. 20 minutes is the default value of viewing.sessionLifetime in the PrizmDoc central configuration file, and you can increase it if you would like your Viewing Sessions to be active longer. On PrizmDoc Cloud this value is set to 5 hours.
viewing.sessionLifetime
You can find the relevant config file using the following file paths:
/usr/share/prizm/prizm-services-config.yml
C:\Prizm\prizm-services-config.yml
We are trying to create new viewing packages, however, in the [prizmdoc_process] table we see the process is 100% complete. However, the error code field indicates an Internal Error.
The document does not display in the viewing session and gives a 480 error. The following error code is:
{errorCode: “ViewingPackageNotUsable”}
What might be the issue?
When creating viewing packages, the PrizmDoc Application Services (PAS) uses the PrizmDoc Server to do the conversion work. In order for the viewing package to be created successfully, the PrizmDoc Server needs to be licensed and healthy.
If you see an error “ViewingPackageNotUsable” this can be related to the PrizmDoc Server either not being healthy or specifically not being licensed.
To verify the PrizmDoc Server status and if it is licensed, you can run the following command on the PrizmDoc Server in a web browser:
http://localhost:18681/admin