Ask about the ability to convert to XPS files

When building the source downloaded from Git, the following error occurs.

‘JsonPropertyAttribute’ 형식이 ‘Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed’ 및 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed’에 모두 있습니다. GroupDocs.Viewer.AspNetWebForms D:\GroupDocs.Viewer-for-.NET2\Demos\ASP.NET Web Forms\src\Models\ErrorResponse.cs 10

@dianysus

Try pulling the latest changes, I have updated the reference to Newtonsoft.Json in the latest commit.

We are conducting a speed test using the latest source. When converting a 90MB file, the following error occurs.

“Maximum request length exceeded”

The original file is confidential to the customer and cannot be forwarded.

The size problem was solved by setting maxhttprequest.

License settings are required for accurate testing. Is it possible to apply the current GroupDocs.Total license to the latest source and test it?

@dianysus

Thanks for the update.

Yes, you can test it with GroupDocs.Total license. Also, you can render a document in chunks by setting PreloadPageCount to some value rather than zero.

The latest source was applied, but the conversion speed was not improved.

The latest source seems to have improved the viewer’s caching processing speed.

Before converting, we want to pre-process caching in an asynchronous way. If you have any related samples, please forward them.

The licensed version I purchased is GroupDocs.Total for .Net Professional 3.0.

Please ask for a sample for the purchased product.

@dianysus

To pre-process files you have to call two methods

  1. GetDocumentInfoAsync
  2. GetPagesAsync

You can use any GroupDocs product with GroupDocs.Total license.

Thanks for your help.

And, the latest source delivered does not implement the WaterMark part. It is not used for reading, but must be used after setting the WaterMark only when printing. Please guide me on how to set WaterMark.

@dianysus

In case you want watermark when printing you can extend GetPdfAsync method with one more parameter

var watermark = new Watermark("MY COMPANY NAME");
var pdfFileBytes = await _viewer.GetPdfAsync(fileCredentials, watermark);

Update implementation in BaseViewer.cs and related interface

public async Task<byte[]> GetPdfAsync(FileCredentials fileCredentials, Watermark watermark)
{
    var pdfStream = new MemoryStream();
    var viewOptions = CreatePdfViewOptions(pdfStream);
    viewOptions.Watermark = watermark;

    var viewer = await InitViewerAsync(fileCredentials);
    viewer.View(viewOptions);

    return pdfStream.ToArray();
}

Watermark has been fixed.
Please guide me how to set htmlmode to false. I changed htmlmode to false in UIConfig.cs and ViewerApiController.cs, but html files are still created.

And customers continue to complain about speed issues. It takes 50 seconds to view a 66-page PPT file.
Loading the prereloadpage as a full page is fast.

And For documents over 50 pages, search terms cannot be entered directly. Can query processing be handled asynchronously?

@dianysus

Thank you for the feedback!

Can you please attach a sample file that we can use to reproduce the issue?

Query processing is handled on the client-side. Can you please clarify what issue you’re experiencing?

The problem is, the sample data cannot be delivered. We will send you another sample. The conversion speed is about 50 seconds.

Please check the sample data and delete it.

By setting PreloadPageCount to 0, the entire page was loaded.

There was a lot of speed improvement when the cache data was created in advance.

However, if you enter a search term key while the page is all open, it stops without being entered.

After about 15 seconds, the search term you entered appears.

image001.jpg

Even when clicking Thumbnails, the browser becomes unresponsive, and Thumbnails are displayed after about 25 seconds.

image002.jpg

The source used the latest source provided, and as a result of checking with Fiddler, it did not work on the server side.

The client script seems to be working, but the JS files in the source are all Release versions, so debugging is impossible.

(Attachment 전자결재_개발교육자료_v2.0.ppt is missing)

The ppt file is converted to a pdf file for search. Pass back the final original source file.

https://docs.google.com/presentation/d/1lyoh3PT9lMmJ1hq1maQ3jF9cKulhy_OP/edit?usp=sharing&ouid=104184195768115563228&rtpof=true&sd=true

https://drive.google.com/file/d/19D0XbjhtU9hBDE6Q00JGn5secryjs12G/view?usp=sharing

image001.jpg (79.7 KB)

image002.jpg (76 KB)

@dianysus

Thank you for attaching files and screenshots. We’ll take a look and update you.

@dianysus
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): VIEWERNET-4242

You can obtain Paid Support services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Please share the progress of the opened disability inquiry Case VIEWERNET-4242.

And, any further inquiries.

The initial screen for each file extension is either one page or two pages. We are asking how the page on the initial screen is displayed.

@dianysus

The issue VIEWERNET-4242 is in progress now. We’re looking for possible solutions to make UI responsible while a user typing text in the search input.

A number of pages you can see on the initial screen depends on page size and if two pages fit it will be two pages.

The failure phenomenon is a script failure, which causes the browser to stop working and stop.

Error script.jpg : Script error log.
Edge network*.jpg : The http communication that occurs during printing is sequentially screen-captured.

Android¿ë Outlook ´Ù¿î·Îµå

edge network3.jpg (122 KB)

error script.jpg (153 KB)

edge network1.jpg (225 KB)

edge network2.jpg (468 KB)

@dianysus

Can you please clarify if you’re trying to print a file when you get this error?