Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Thu Nov 13, 2014 10:24 pm

Is there a way to set stapling, if it's available, during printing of a PDF?

bkboggy
 
Posts: 1
Joined: Thu Nov 13, 2014 10:22 pm

Fri Nov 14, 2014 6:45 am

Hello,

Thanks for your inquiry. Sorry that at present our product doesn't support the feature. And I have added the requirement to our Dev team, once there are any progress, we will let you know.
Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Wed Jun 27, 2018 2:25 pm

Hello, is there any progress on that one?

iseag
 
Posts: 15
Joined: Thu Feb 01, 2018 10:32 am

Thu Jun 28, 2018 6:07 am

Dear iseag,

Thanks for your inquiry.
Sorry that there is no progress. We will let you know once there is any update.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Aug 10, 2018 2:02 pm

Do you know if this feature will be available? If yes, how soon you anticipate to have it?

tlerner
 
Posts: 32
Joined: Mon Aug 14, 2017 5:49 pm

Mon Aug 13, 2018 3:10 am

Dear Tanya,

Thanks for your inquiry and sorry for late reply as weekend.
We have plans to achieve the feature in the future, but sorry that I can't provide an estimated time at this moment, if it is available, we will inform you immediately.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1182
Joined: Tue Sep 27, 2016 1:06 am

Thu Dec 05, 2019 10:50 am

Hi,

Glad to inform you that the new feature has been done. Welcome to download and use the latest Spire.PDF Pack(Hot Fix) Version:5.12.15.
Our website link: https://www.e-iceblue.com/Download/down ... t-now.html
NuGet link: https://www.nuget.org/packages/Spire.PDF/5.12.15

Sample code for your reference:
Code: Select all
doc.PrintSettings.SelectBookletLayout();
doc.PrintSettings.SelectBookletLayout(PdfBookletSubsetMode bookletSubset);
doc.PrintSettings.SelectBookletLayout(PdfBookletBindingMode bookletBinding);
doc.PrintSettings.SelectBookletLayout(PdfBookletSubsetMode bookletSubset, PdfBookletBindingMode bookletBinding);


Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Wed Dec 25, 2019 7:55 am

Hi,

Greetings from E-iceblue.
Do you use the hotfix and the new feature? Has your issue been resolved?

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Thu Sep 23, 2021 3:04 pm

Hello,
I am able to print PDF files with this simple code, using Spire:

Code: Select all
PdfDocument doc = new PdfDocument();
            doc.LoadFromBytes(pdf_array);
            doc.PrintSettings.SelectSinglePageLayout(Spire.Pdf.Print.PdfSinglePageScalingMode.FitSize);

            doc.Print();


I am now trying to staple the pages, however i am not able to do it.
I tried the proposed solution (.PrintSettings.SelectBookletLayout) but it does not have the desired behaviour. I don't see how i can staple through the PrintSettings.
Please help.

Thank you,
Vasco Mendes

vasco.mendes
 
Posts: 3
Joined: Wed Sep 22, 2021 3:46 pm

Fri Sep 24, 2021 1:56 am

Hello Vasco,

Thanks for your feedback.
You want to combine multiple documents into single file and print it, right?
If so, please refer to the following code.
Code: Select all
 
            String[] files = new String[] { "Sample1.pdf", "Sample2.pdf", "Sample3.pdf" };
            using (Stream stream = new MemoryStream())
            {
               //Merge multiple pdf files to a single file
                PdfDocumentBase doc = PdfDocument.MergeFiles(files);
                //PdfDocumentBase doc = PdfDocument.MergeFiles(streams);
                doc.Save(stream);
                //Print pdf file
                PdfDocument printDoc = new PdfDocument();
                printDoc.LoadFromStream(stream);
               //Some printing settings
               .......
                printDoc.Print();
            }

If it is not what you want, could you please describe in detail the desired behaviour? Thanks.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Fri Sep 24, 2021 8:37 am

Hello,
No, what we want is for the printer to staple all printed sheets from one document.
For example, a document with 5 sheets, we want to print them all and then to staple the sheets.

vasco.mendes
 
Posts: 3
Joined: Wed Sep 22, 2021 3:46 pm

Fri Sep 24, 2021 9:40 am

Hello Vasco,

Thanks for your response.
To help me understand your needs more quickly and correctly, could you please share a screenshot like the one below to show your desired print settings?
PrintSettings.png


And please share your desired effect by printing a pdf file with Adobe tool.

Thank you very much for your assistance in advance.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Fri Sep 24, 2021 11:03 am

Hello,
Our printer (Ricoh) is able to staple sheets together, after the print.
We use the following setting when we want to staple:

vasco.mendes
 
Posts: 3
Joined: Wed Sep 22, 2021 3:46 pm

Sun Sep 26, 2021 1:59 am

Hello Vasco,

Thanks for sharing the details.
The stapling function you want is a special function of some printers, not the printing function of the PDF document itself (as shown in the picture below). Sorry, we cannot support the stapling function you expect. Our product can only implement the printing function for the PDF document itself, which can be applied to any printer.
PDFs Print settings.png


Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.PDF

cron