Relative Content

Tag Archive for pdf

Convert plain text to a pdf template

I have some articles (more than 200 pages) in plain text. It needs to be converted to an given PDF markup. I got some Photoshop files for the headers for every page and a list of requirements for the different elements.

PDF – add “next sheet” mark

I merge multiple documents into one PDF. So they can be printed with one click.
My users would like to print document double-sided. But they also would like to have every document on separate sheet.
I can can option in my app to add empty pages to separate documents but, maybe PDF itself offers “start new sheet of paper” command?

PDF – add “next sheet” mark

I merge multiple documents into one PDF. So they can be printed with one click.
My users would like to print document double-sided. But they also would like to have every document on separate sheet.
I can can option in my app to add empty pages to separate documents but, maybe PDF itself offers “start new sheet of paper” command?

Extract an image from a pdf

There is a pdf document containing several pages, each of which has text and an image. I need to extract the image. I use python and the fitz library. When trying to extract an image from ‘/XObject’, an image containing 1 pixel is extracted, which is apparently used as a mask, but the image itself cannot be extracted. The content of the page is as follows: 1 0 obj <</Tabs/S/Group<</S/Transparency/Type/Group/CS/DeviceRGB>>/Contents 6 0 R/Type/Page/Resources<</ColorSpace<</CS/DeviceRGB>>/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]/Font<</F1 2 0 R/F2 5 0 R>>/XObject<</Xf1 3 0 R/img0 4 0 R>>>>/Parent 7 0 R/MediaBox[0 0 99 173]>>