Telerik Forums
UI for Blazor Forum
1 answer
10 views
Is their any way to customize the size of the browser print dialog window? It currently appears in a less-than-ideal manner, especially in Microsoft Edge.
Hristian Stefanov
Telerik team
 answered on 03 May 2024
1 answer
20 views

Hello Guys, i got the License for Blazor Application, 

I'm using Server Side at .net 6 and i put the css and js on _Layout :

<link rel="stylesheet" href="_content/Telerik.UI.for.Blazor/css/kendo-theme-default/all.css" />

<script src="_content/Telerik.UI.for.Blazor/js/telerik-blazor.js" defer></script>

On nuget i got the full version as well,

But i keep receiveng the trial version message when i use PDF Viewer, am i missing anything else? 

 

Dimo
Telerik team
 answered on 08 Mar 2024
2 answers
135 views
The subject says it...


       <TelerikPdfViewer @ref="@PdfViewerRef"
            Width="100%"
            Height="100%"
            OnDownload="@OnPdfDownload"
            OnError="@OnPdfError"
            OnOpen="@OnPdfOpen"
            Zoom="@PdfZoom"
            ZoomChanged="@OnPdfZoomChanged"
            EnableLoaderContainer="true"
            Data="@PdfData">

            <PdfViewerToolBar>
                <PdfViewerToolBarCustomTool>
                    <TelerikButton OnClick="@PreviousPage">Vorige pagina</TelerikButton>
                    <TelerikButton OnClick="@NextPage">Volgende pagina</TelerikButton>
                </PdfViewerToolBarCustomTool>
                <PdfViewerToolBarZoomTool />
                <PdfViewerToolBarSelectionTool />
                <PdfViewerToolBarSearchTool />
            </PdfViewerToolBar>


        </TelerikPdfViewer>

Marc
Top achievements
Rank 2
Iron
Iron
 answered on 23 Nov 2023
1 answer
144 views

Hello, 

I'm using PDF Viewer to load a byte[] from my file 

 

file info : 28 pages

size : 3,4MB

It takes almost 20 seconds to load my pdf... theres an option to optimize this?

Code:

@if (arquivopdf != null)
{
    <div class="mt-n7">

        <TelerikPdfViewer @ref="@PdfViewerRef"
                          Width="100%"
                          Height="800px"
                          Data="arquivopdf">
            <PdfViewerToolBar>

                <PdfViewerToolBarZoomTool />

                <PdfViewerToolBarCustomTool>
                    <MudIconButton Icon="@Icons.Material.Filled.Download" Size="Size.Small" Color="Color.Dark" OnClick="BaixarArquivo" Style="@ocultarImprimir" />
                </PdfViewerToolBarCustomTool>

                <PdfViewerToolBarCustomTool>
                    <MudIconButton Icon="@Icons.Material.Filled.MobileScreenShare" Size="Size.Small" Color="Color.Dark" OnClick="() => AbrirEncaminhar()" Style="@ocultarEncaminhar" />
                </PdfViewerToolBarCustomTool>

                <PdfViewerToolBarCustomTool>
                    <MudIconButton Icon="@Icons.Material.Filled.ArrowBack" Disabled="@disableAnterior" Size="Size.Small" Color="Color.Dark" Style="@ocultarBtnAnterior" OnClick="() => CarregarAnterior()" />
                </PdfViewerToolBarCustomTool>

                <PdfViewerToolBarCustomTool>
                    <MudIconButton Icon="@Icons.Material.Filled.ArrowForward" Disabled="@disableProximo" Size="Size.Small" Color="Color.Dark" Style="@ocultarBtnProximo" OnClick="() => CarregarProximo()" />
                </PdfViewerToolBarCustomTool>

                <PdfViewerToolBarCustomTool>
                    <MudIconButton Icon="@Icons.Material.Filled.Close" Size="Size.Small" Color="Color.Dark" OnClick="()=> Cancel()" />
                </PdfViewerToolBarCustomTool>

            </PdfViewerToolBar>
        </TelerikPdfViewer>

    </div>
}

    protected override async Task OnInitializedAsync()
    {
        _relatorio = await _RelatorioService.ObterRelatorioPorId(Id);

        arquivopdf = _relatorio.Arquivo;
    }

 

Hristian Stefanov
Telerik team
 answered on 16 Nov 2023
1 answer
68 views
I can hide the toolbar buttons by defining a blank toolbar component.  But the toolbar, or the space that the toolbar occupies is still visible.

<TelerikPdfViewer Data="Document.Image">
    <PdfViewerToolBar>
    </PdfViewerToolBar>
</TelerikPdfViewer>

Hristian Stefanov
Telerik team
 answered on 07 Nov 2023
1 answer
48 views

Between the Signature Component and the PDF Processing component I'm having a hard time figuring out how to present a pdf file on a Blazor page for the user to read. Then have a user provide their signature and save that file with the signature imbedded.

I feel like I'm missing and or confusing steps here.. Can someone help me out?

Dimo
Telerik team
 answered on 27 Oct 2023
1 answer
110 views

Hi,

I want to disable and hide the marked part of the PDFViewer component.

 

How can i do that?

Thanks,

Ben

Hristian Stefanov
Telerik team
 answered on 23 Oct 2023
0 answers
110 views

I have a byte[] of a PDF file that i show the user in a PdfViewer. In the toolbar, the user has the option to download the file or print it, in addition to other functions.

If the user downloads the file, opens the PDF in Google Chrome and prints it, the print quality is the same as the PDF file. On the other hand, if the user prints directly from the PdfViewer, the quality shown in the preview is lower and the margins are different - it looks like it renders the print as an image of an A4 paper.

Example of the bottom right corner in the Google Chrome print preview:



Example of the bottom right corner in the PdfViewer print preview:



Unfortunately, it is clearly visible that the quality is lower and the positioning is not the same.

Is there a workaround for this issue?

Domingos Portela
Top achievements
Rank 1
 asked on 09 Aug 2023
0 answers
133 views
Hello,

The PDF Viewer provides a Print method.

Is it possible to print with custom headers and footers?

Kind regards,


Valeriy
Top achievements
Rank 2
Iron
Iron
 asked on 26 Jul 2023
1 answer
318 views

I  create a PDF-Document on the fly and want print it immediately afterwards.

Actually I am using TelerikPdfViewer to show the PDF on screen but the user has to click on the Print-Button and the another time in the follwing print dialog from the browser.

I would like to print immediately to the default printer without preview. 

And to spice it up: I would like to print it 3 times!

Is there by any chance to achieve that ?

 

Dimo
Telerik team
 answered on 07 Jul 2023
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?