All Questions
1,411 questions
0
votes
0
answers
26
views
Render widget content to PDF or render html to widget and PDF consistently
In a few words, my problem is that I need to render HTML to a flutter widget and also be able to print it (e.g. to PDF) and both look the same.
A flutter app fetches simple HTML-formatted content from ...
1
vote
0
answers
53
views
how to add header to all pages of printed PDF from HTML? [closed]
I have been working on this problem for a while and still can't resolve. I have created a HTML document, and now want to add a header to every page when it is printed.
chrome_print(
input = html_file,...
0
votes
0
answers
28
views
Integrating Print Settings into a PDF
How can I embed information in a PDF so that the printer knows which tray to use for the paper?
There used to be an old tool that unfortunately no longer works for us. It inserted such containers, ...
0
votes
1
answer
28
views
ICEpdf: PDF Printing corrupted second page
I am using the below code to print a PDF with ICEpdf but for some reason the second page is corrupted as follows:
Also, the file size of the original is 328kb and the printed on (Print to PDF) is ...
0
votes
1
answer
60
views
Why does my button to print PDF not work in Access
I have a report in Access which I've created a button for and entered the following code for on click:
Private Sub Command18_Click()
DoCmd.RunCommand acCmdPrint
End Sub
This opens up the print ...
1
vote
0
answers
43
views
Printing MathJax (to PDF) with selenium
I'm trying to use Python / selenium to print a bunch of webpages to PDF. When I use selenium to open the page (not shown here), Mathjax renders fine, and if I manually print to PDF (I'm using Firefox)...
0
votes
2
answers
58
views
How to print an html page with a specific size into a pdf file
I want to print into a pdf file a html page with a specific customized dimension:
here the css part:
@media print {
@page {
size: 210mm 105mm;
margins: 10mm 10mm 10mm ...
1
vote
1
answer
51
views
Misalignment when printing/saving to PDF
I'm having a problem when I want to print/save as PDF my HTML page.
At first, I didn't add anything to my code, and when the web page was saved as PDF (Ctrl+P), it looked like this :
My webpage once ...
0
votes
0
answers
31
views
How to send a PDF file to share printer in PHP-Apache (Windows)
I swear I've searched for days and can't figure this out.
Network shared Printer Name: "\\192.168.0.100\Gprinter GP-3120TL"
Enter \192.168.0.100 through RUN (win+R), enter the username and ...
0
votes
0
answers
34
views
How to setup page correctly for pdf export using vba?
I am trying to export a specific range on a worksheet as a PDF. I want a 0.5cm margin to the left and right. Apart from that, I want the width of the range to fill the rest of the width of the page ...
0
votes
0
answers
32
views
Print pdf file -> annotations not printed to the paper
if (cancellationSignal.isCanceled()) {
layoutResultCallback.onLayoutCancelled();
}
else {
PrintDocumentInfo.Builder builder=
new PrintDocumentInfo.Builder("Contract");
...
0
votes
0
answers
55
views
Print in WPF Application with PDF preview
I am developing a WPF application where I need to generate a PDF and open it in a Print dialog with a preview, so the user can either print or download it as a PDF. I haven't been able to find many ...
0
votes
1
answer
100
views
window.print of iframe with pdf inside bootstrap modal
Hey guys I try to print a bootstrap modal which contains an iframe pointing to a local pdf file. The modal itself looks fine.
Problem is I want to print the modal with my own button (not the one in ...
0
votes
0
answers
66
views
CSS for Page break when generating a form using FTL
I have been beating my head into the wall trying to get this form to format correctly when printed. The problem I have is that when I try to tell it where to insert page breaks manually, it still does ...
0
votes
0
answers
132
views
PdfiumViewer is slow when sending pdf to printer
I am testing PdfiumViewer to send pdf to printer in C#.
References:
https://github.com/pvginkel/PdfiumViewer
How can I send a file document to the printer and have it print?
I found that it's slow ...
0
votes
0
answers
138
views
Print PDF from rust using pdfium and winapi
I am trying to print a PDF in rust using pdfium and winapi.
The code runs through without errors and the debug output also looks good.
In the printer queue you can briefly see the job flashing but no ...
0
votes
1
answer
258
views
I can't print a PDF using PDFsharp
I have a problem when printing a PDF using the PDFsharp library.
I am using the Stream property of the PdfPage class to draw the page. However, it is showing a null reference error, as the stream is ...
-1
votes
2
answers
342
views
How to print pdf in C#
I need to print an existing PDF where the printer selection window is displayed to the user in C#, without a paid library. And print immediately afterwards.
I have this snippet of code, using ...
0
votes
1
answer
38
views
I'm trying to create an AppleScript that prints to an specific Print Plugin
I'm trying to print to PDF using a Print Plugin I have (called "PDF Redux").
I have an script in place but I'm not being able to open the PDF menu and selecting the correct plugin.
This is ...
0
votes
0
answers
207
views
How to send command to printer using python for printing PDF file on windows?
I need to run a Python script that directly sends commands to the printer for printing the PDF file /test.pdf.
I don't want to use any proprietary or third-party tools.
I can use the win32print ...
1
vote
0
answers
52
views
Preview a pdf file and disabling the print button
I have a scenario to achieve my goal.
Convert the pdf file to image and then convert the image to base64 and pass it to my customize report viewer RDLC. However, based on my research it is necessary(?)...
0
votes
0
answers
169
views
Print an Invoice PDF from HTML+CSS & Bootstrap in ASP.Net Core MVC
I am having trouble finding a working solution for printing a PDF from an html page in an ASP.Net Core MVC Web application.
There were an article talking about printing custom header and footer in the ...
0
votes
0
answers
54
views
How to reduce PCL file size while converting pdf to pcl using ghost script?
I am converting a PDF file to a pcl format using ghostscript. Size of pdf file is 70kb but when I convert to PCL file then size becomes very large like 700kb for 300 resolution and 2mb for 600 ...
0
votes
1
answer
255
views
ZDesigner GK420d printing PDF labels and the barcodes are not clear
I'm in a Windows environment using a ZDesigner GK420d (Zebra Designer) printer for shipping labels. I am using the latest driver - v 5.1.14.7414
We have the shipping labels in pdf - when I open them, ...
0
votes
0
answers
492
views
Borderless Print to PDF from Excel
I want to export an excel sheet to a PDF. I do so with the following VBA code (the comments are just some things I tried):
ThisWorkbook.Sheets(sheet).Select
'ActiveSheet.PageSetup....
0
votes
0
answers
80
views
How to automate building Dropdown list in Bluebeam forms
My application requires a custom dropdown list for over 60 drop down options.
Option 1, would like to set up an array that could be pasted into the JavaScript then load the contents of the array in a ...
0
votes
0
answers
43
views
How to fix Java Swing PrinterJob print being off the page
I have this GUI that I'd like to print in half a letter sheet of paper:
However when printing with this code on the "Confirm print GUI":
PrinterJob job = PrinterJob.getPrinterJob();
...
0
votes
0
answers
195
views
Chrome PDF print image aspect ratio incorrect - very apparent with small images - is there a workaround?
When printing to PDF from Google Chrome, strange things happen to small images.
The images seem to alternate between being stretched or squished horizontally.
It happens to all image types I've tried.
...
0
votes
0
answers
34
views
show pdf from URL and print in Flutter
I am using printing and pdf package then when i use this code:
void _displayPdf() async {
final doc = pw.Document();
final netImage = await networkImage(
'myPdfLink');
doc.addPage(pw.Page(
...
0
votes
0
answers
197
views
How can I print to adobe acrobat printer (pdf) in Delphi silently
When I choose Adobe acrobat pdf printer and then want to print to it (create a pdf file) it ask me the putput filenam and after the printing Adobe acrobat opens the output pdf file.
I want to send ...
0
votes
0
answers
86
views
Overriding the default export button click event in crystal report viewer Print UI fdialog
I am new to crystal report anyway currently in the learning mode. When the default print icon in the tool bar is clicked the print UI dialog appears allowing us to select export format.
Once pdf ...
0
votes
0
answers
45
views
How to ensure that Firefox has finished writing to PDF using webdriver and window.print()
I am attempting to automate use Firefox to render HTML to PDF. I am using Selenium/Webdriver to automate Firefox. It works great for smaller documents, but for larger ones, the PDFs are incompletely ...
0
votes
0
answers
38
views
Why @page is not working for printing an HTML page? [duplicate]
I used the @media print attribute to custom printing of pdf file.
Everything is going fine, but I didn't succeed to make the (page count / title) work using @page.
print.css
@media print {
@page {
...
0
votes
0
answers
89
views
Extending PDF Printer or write my own driver?
Background (simplified):
We are sending PDFs digitally to people through a system. PDFs are dropped to folder and then picked up by the sending system.
But now we are facing some validation that is ...
1
vote
1
answer
77
views
Generating PDF file with types (not format) per page
I am working on a software producing multi-pages PDF documents - to be printed in local offices.
Pages have different sizes, but mostly different types.
For instance (here is just 2, there is actually ...
1
vote
0
answers
456
views
Flutter Printing package not working for printing PDF on deployed Flutter web app
I am facing an issue with the Flutter Printing package when trying to print a PDF on a deployed Flutter web app. The following code snippet works perfectly fine in debug mode:
await Printing.layoutPdf(...
0
votes
0
answers
61
views
PDF-cropping and printing (gs and lp) printing the wrong section, but works using GUI
I've written a small script - on MacOS - designed to do two fairly simple things - crop a PDF (a 4 x 6 shipping label) at a given file path, and then print it. I'm using ghostscript for the cropping, ...
3
votes
1
answer
492
views
PDF font names with spaces give rise to printer errors
Some background: I maintain an archive of largely unindexed scientific literature, and in this context use scanning of paper documents with subsequent OCR to produce searchable text. Which worked ...
-1
votes
1
answer
191
views
How to revert the printing of PowerPoint slides to A4 pages in PDF with 2 slides each?
I have a teacher who shows PowerPoint presentations in his classes but, when sending us the files, he does the "print to PDF" thing and, instead of uploading the slides themselves, he prints ...
0
votes
0
answers
242
views
Bulk Download All invoices
Is there a way to download all invoices in Netsuite? We have around 50K invoices. The 'print checks & Forms' page has a limitation of 100 invoices. Is there a way to overcome this? I need ...
0
votes
0
answers
63
views
Android connected to printer, printed PDF document, document was reduced
I set up PrintAttributes for printing PDF documents, the paper size is set to A3, but when it is connected to the wifi printer, it is reduced and cannot print 100%. :
PrintAttributes attributes = new ...
1
vote
0
answers
65
views
Can't print PDF from <object> / <iframe> / <embed> in Firefox
I have the following React component. It receives a link to a PDF document and renders PDF browser-specific viewer.
export type PDFViewerChildrenProps = {
dataUrl: string;
};
const ...
0
votes
0
answers
88
views
Duplicate route message error in laravel filamentphp
I'm in a quagmire and can't solve the riddle.
In an environment with Laravel 10 and filamentphp 3 I want to create and display an invoice in a new tab.
I have the following route in web.php:
Route::...
0
votes
1
answer
944
views
Python: Fitting images inside A4 PDF
I have some images that i want to convert to pdf. currently i'm using this code with FPDF:
def image_to_pdf(image_url, pdf_url):
from fpdf import FPDF
pdf_model = FPDF()
pdf_model.add_page(...
1
vote
1
answer
533
views
UIPrintInteractionController and UIDocumentInteractionController crashes when share button is tapped on iOS17
I'm presenting the print view item of type NSData (this is a pdf that is generated), which I can view correctly in the print preview. I also tried to do this with UIDocumentInteractionController, I ...
1
vote
1
answer
148
views
How do I fix Python Ghostscript Program printing a blank pdf file?
I am trying to print a pdf file from a folder to a hard physical copy for user use. The pdf file is good, simple label sheet(screenshot attached), the program runs good, but if I print the pdf to a ...
-1
votes
1
answer
45
views
Printing a dedicated A4 format div with content as a pdf results in whitespace above the content on the second and third page, I wonder why?
I am going a bit crazy here, I tried everything but for some reason my project where I simply want to print 3 pages a a PDF get broken whenever i go into the printing dialog.
Here is a direct link to ...
0
votes
1
answer
688
views
VBA code shellexecute not sending PDF doc to printer
I have inherited an Access program that worked fine for at least 10 years.
One of the tasks it performs - printing a batch of 10 to 100 reports and associated PDF documents in collated manner.
If the ...
0
votes
0
answers
22
views
Setting browser print settings using JS [duplicate]
Is it possible to change browser settings when you print a page
window.print()
to overwrite the settings? - margins, paper size, etc.?
I have some print styles, so the printed page looks decent, but ...