What HTTP header is needed to be returned so web browsers use the suggested filename? (File download from CGI in C)

We have a PDF file download link on a web page with a C language CGI program actually passing on the file from our embedded device's web server. The web server is custom coded because of severe...

Denying direct access to a folder (only allow through app)

I need to prevent someone from directly accessing a pdf, instead only allowing them to be pulled through the app itself. How can this be done?

How to create an SVG with JFreeChart?

On the JFreeChart web site it says that the library can output the chart in vector format. From the JFreeChart site: support for many output types, including Swing components, image files...

Splitting HTML page so Printer splits it into separate pages

I am planning price list available for clients online and I was thinking about simple very long page or div container with some anchor links aside to help jump to different products. However in...

Can we compress PDF file size using iText?

I am using iText to read and manipulating PDF files(reports). I read a PDF report using iText and I make each page as separate PDF file. But I am unable to reduce the size of the generated pdf. Is...

PDF in iframe doesn't reload when I click a link to another page of the PDF

I have an iframe in my page in which I display a PDF. <iframe src="test.pdf#page=1&view=FitH,0&zoom=200&toolbar=1&navpanes=0" id="iframe"></iframe> Somwhere else on the page I have a link to...

Print Pdf file via Bluetooth Printer Android

In My project Need to print Pdf file Via Bluetooth Printer. I write a code to print via pdf Its for fine for a Text, But I want to Print PDF file on Bluetooth printer. My java Code to Print...

Create PDF from a list of images

Is there any practical way to create a PDF from a list of images files, using Python? In Perl I know that module. With it I can create a PDF in just 3 lines: use PDF::FromImage; ... my $pdf =...

Install Zathura on macOS 10.10.2

I am trying to install Zathura on a Mac OS X 10.10.2. I have downloaded Zathura 0.3.2 and tried to run make but it requires girara. Girara requires gtk 3.2 but brew install gtk+3 only installs...

Detecting if a PDF file contains 3D element

Is there any way to detect if a PDF contains 3D element (Universal 3D object embedded) without reading the file contents? Can this information be obtained from metadata?

Converting .doc to .pdf in java (for free)

I created a java app that create some documents in output. The documents are created with apache POI api and are made of text abn tables. My boss now decided they also want them in pdf format for...

Shadow space example

EDIT: I have accepted an answer below and also added my own with my final revision of the code. Hopefully it shows people actual examples of Shadow Space allocation rather than more words. EDIT 2:...

How to convert Image to PDF?

I am developing an application where I need to convert an Image to PDF. I tried something, but the issue is, Image size in that PDF is very very small. I need solution to fix this. Also I am...

Implement Document Picker in swift (iOS)

I want to pick a file of any type(.pdf, .docs, .xlsx, .jpeg, .txt, .rtf, etc) functionality in my iOS app. On clicking on Upload button, I want my app to open a directory and select...

Radiobutton display problems with PDFBox

I used the code from the answer from this question to create my radiobuttons: https://stackoverflow.com/questions/34867139/how-to-create-a-radio-button-group-with-pdfbox-2-0 After I created my PDF...

How to download a file after clicking a button (Android Studio)

I recently created an activity in my app. Now I wanted the user to download a .pdf file when he/she wants to view the guidelines. I wanted to implement this on a button. Any idea how to do this...

OpenGTS Integration in Eclipse

OpenGTS Integration in Eclipse *Imported whole opengts code in to the eclispse workspace. *Created the four environment variables like GTS_HOME,CATALINA_HOME,ANT_HOME,JAVA_HOME as system...

Download pdf file from API

I am creating a function that creates and download a pdf after button click. I am using express as backend and react/readux/axios as front. My backend runs on a different port than my front. So I...

Node.js binary to PDF

I have got a express server, which creates a pdf file. I am trying to send this file to the client: const fs = require('fs'); function download(req, res) { var filePath =...

PDF is cutting down from right when exporting using node js html-pdf

I am having a task in my project to convert a html file into pdf. It has been done successfully using html-pdf. But the problem is when I am running this in my localhost the pdf coming fine but if...

How to upload a file in Selenium when sendKeys is not working

The HTML code is of type shadow DOM. This is the input type: <input hidden type="file" id="fileInput" accept=".doc,.docx,.pdf,.jpg,.png">

Issue with react-table: TypeError: Cannot read property 'forEach' of undefined

I'm working on a react frontend which calls an API and attempts to take the return JSON data and put in a table format using react-table. I've been stumped for a couple days now on this. I'm using...

NodeJS html-pdf cutting of right side

I'm converting HTML to pdf using html-pdf; however, it is cutting the right side of the content. I grab the HTML from database and send a pdf response to the browser using express. let htmlData =...

"ErrorMessage":"Failed to find ABCGeckoWP.exe."

I have been beating my head for the last 7 hours on this. Full disclosure, I am a PHP guy and not the strongest at ASP.net. So I am coming to you experts. The issue is that when we run the code...

How can I download a binary file using Python and WinHTTPRequest?

I need to download a bunch of pdf files from the web. I usually use the urllib3 library, but it is a corporate website with authentication. I can download a normal html web using the...

Android 11 open failed: EACCES (Permission denied)

I am developing an app. In which I am uploading different file types (e.g. docx, pdf, zip) to a WAMP Server. Below is path of file to my internal...

multer single upload doesnot work but array works

I am using react js to upload a single file. But multer.single() doesnot work whereas multer.array() works. What's the problem? //Node.js const upload = multer({ storage: multer.diskStorage({ ...

Install libreoffice on lambda nodejs 12.0 but can not run command when deployed

I try to install libreoffice to docker image of lambda function. When I run it on local machine it work fine but when deployed the image to lambda function, It keeps saying "failed to read path...

How to export pdf of search result laravel 8

I can export pdf of all data. and its work fine. But How I can export pdf of search result. So the user can export pdf of all data and if search he can export search result only. I'm using DomPDF...

Unhandled Rejection (TypeError): Cannot read properties of undefined (reading 'reduce')

I am working on yup validation. Whenever it comes to FileList validation, if I left the input blank, I got the following error: enter image description here Here is my code: import React, {...