Questions tagged [princexml]

Prince is software for converting XML and HTML documents to PDF files.

Prince (formerly PrinceXML) is software for converting XML and HTML documents into PDF files.

The Prince library is developed by YesLogic Pty. Ltd. Versions for Windows, Mac OS X and Linux are available.

This is a commercial product. A free version is available, but PDF files generated from this free version have a watermark.

74 questions
0
votes
0 answers

Overflow:hidden CSS not working in Prince XML

I have description that is overflow:hidden in HTML page since it was overflowing the data in PDF to next page. I see the data hidden after an extent in HTML but on generation of PDF the whole description comes up till the next page. This is with…
viji shetty
  • 41
  • 2
  • 9
0
votes
1 answer

Does Prince support edged indexes/bleed tabs?

Is there any way to configure PrinceXML to print edge indexes/bleed tabs? for example a phone book, with edges A, B, C.... Thanks!
Yisroel M. Olewski
  • 1,560
  • 3
  • 25
  • 41
0
votes
1 answer

Why styles don't apply to xml inside princexml

I have some XML:
Some title Some Author
and XSL:
Pavel Perevezencev
  • 2,596
  • 3
  • 28
  • 49
0
votes
0 answers

Write pdf using prince library

I am using prince library to Convert HTML documents to PDF. In one scenario, user uploads pdf document and I've to write a specific part of the pdf using Prince. I went through Prince PHP Interface Class but did not find suitable methods. Is there…
aagjalpankaj
  • 1,160
  • 1
  • 15
  • 25
0
votes
0 answers

laradock refer to workspace directory path

I have successfully installed Prince via the docker-compose.yml and I see the path + executable I need inside my workspace container but calling it out a number of ways in my Laravel .env will not find that path. In order to use prince I need to…
caro
  • 863
  • 3
  • 15
  • 36
0
votes
0 answers

Coderaptor blank first page

I am using Docraptor (PrinceXML) to generate a PDF file from HTML. I have a following problem. The first page has a different footer as other than other pages, so I am using named pages. I can't use @page:first because in other documents I am…
greentech
  • 111
  • 1
  • 9
0
votes
3 answers

Start first page with `:right` css page rules?

I have defined @page :left and :right margins like this: @page :left { margin-left: 0.75in; margin-right: 0.25in; } @page :right { margin-right: 0.75in; margin-left: 0.25in; } When I print using Chrome it always seems to start the document…
ErikR
  • 51,541
  • 9
  • 73
  • 124
0
votes
2 answers

Docraptor PDF: How to avoid displaying header in 2nd Page

Im generating PDFs using docraptor API and my pdfs can have multiple pages. I have set the header image for the pdf but it appears on all pages. I need the header in the first page only. TIA
bananaCute
  • 433
  • 5
  • 17
0
votes
0 answers

Prince XML on Heroku

I'm working with a Node JS deployment on Heroku, and was wondering if anyone knew how to deploy Prince to Heroku and then access it as a service from an API call. Any help would be appreciated.
Indigo Nai
  • 531
  • 1
  • 4
  • 7
0
votes
3 answers

Hyperlinks not working in PrinceXML

If I write below code in html file to convert it to PDF with prince factory it is not working properly. http://google.com This above link in pdf generated from prince xml is working properly, but it is pointing to…
shruti
  • 780
  • 9
  • 25
0
votes
0 answers

How to include non-standard CSS @-rules in Sass?

I'm trying to add some non-standard CSS @-rules from Prince XML in my Sass workflow, but can't find a way to do so. Desired CSS output: @page { @bottom { ... }; ... } This gives an Unclosed block error when included in Sass as such. The…
Willem Van Bockstal
  • 2,233
  • 1
  • 17
  • 24
0
votes
2 answers

How to add "Prince" library to CodeIgniter?

I want to use this library: http://www.princexml.com/ That helps me create PDF files from an HTML/XML files. I downloaded the PHP zip file from here: http://www.princexml.com/download/wrappers/ and added it to my "libraries" folder in the…
Imnotapotato
  • 5,308
  • 13
  • 80
  • 147
0
votes
0 answers

princexml footer shows only first line

Hiho, I have a problem with princexml. I need to render pages with a repeating footer. This onbe works fine, but on every site is only the first line from the footer content is shown. The footer content is a table with two rows. The first row has on…
0
votes
1 answer

Not finding images when generating pdf's with Prince using the Princely plugin Rails 4.2.1

I have a bunch of images in app/assets/images/ when I render the html view the images are present as one would expect. When I render the pdf view via princely they are not present I just get something like this: Bd header70 b…
Sailorxyz
  • 3
  • 2
0
votes
1 answer

When printing HTML, how can I determine how much space is left before the end of the page?

I'm printing HTML as PDF using PrinceXML. I often print a series of images, some large and some small. When I do this, I'd like to start with the largest image that will fit in the remaining space on the page. How can I determine how much space is…
steven_noble
  • 4,133
  • 10
  • 44
  • 77