Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 08-10-2011, 04:31 AM   #1
avid-e-reader
Member
avid-e-reader began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Dec 2010
Device: Kindle
Question Text to PDF page format controls?

I have a text file that contains FormFeed characters between "pages".

When I try to convert it to PDF, the FormFeed characters seem to be ignored, rather than causing new pages to be started in the PDF file.

Is there a way for it to recognize the FormFeed characters?
avid-e-reader is offline   Reply With Quote
Old 08-10-2011, 07:23 AM   #2
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
No there is not.
user_none is offline   Reply With Quote
Advert
Old 08-10-2011, 08:46 AM   #3
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Not sure what a form feed character is, but if you can express it in regex then you might be able to replace it (using the search and replace feature) with a div that includes a page-break inline style, e.g.:
<div style="page-break-after:always"></div>
ldolse is offline   Reply With Quote
Old 08-10-2011, 10:06 AM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,023
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by ldolse View Post
Not sure what a form feed character is, but if you can express it in regex then you might be able to replace it (using the search and replace feature) with a div that includes a page-break inline style, e.g.:
<div style="page-break-after:always"></div>
Control-L = ASCII FF
theducks is offline   Reply With Quote
Old 08-10-2011, 11:03 AM   #5
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Then in unicode that's \u000C - the OP could try this:

Search box:
Code:
\u000C
Replace box:
Code:
<div style="page-break-after:always"></div>
ldolse is offline   Reply With Quote
Advert
Old 08-12-2011, 07:55 PM   #6
avid-e-reader
Member
avid-e-reader began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Dec 2010
Device: Kindle
ldolse, thanks for the idea, but it didn't seem to work.
avid-e-reader is offline   Reply With Quote
Old 08-12-2011, 09:19 PM   #7
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by avid-e-reader View Post
When I try to convert it to PDF, the FormFeed characters seem to be ignored, rather than causing new pages to be started in the PDF file.
What are you viewing this in to verify that the page breaks aren't there?
DoctorOhh is offline   Reply With Quote
Old 08-13-2011, 08:58 AM   #8
dwig
Wizard
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
Quote:
Originally Posted by avid-e-reader View Post
I have a text file that contains FormFeed characters between "pages".

When I try to convert it to PDF, the FormFeed characters seem to be ignored, rather than causing new pages to be started in the PDF file.

Is there a way for it to recognize the FormFeed characters?
You are probably much better off using different tools for this job.

While calibre is an excellent tool for many conversions (e.g. TXT>EPUB, MOBI>PDF, ...) it is not the best for all of the possible combinations of import and export formats. IMHO, TXT>PDF is one of the latter cases.

I would suggest that you get a good PDF printer driver utility (I use PrimoPDF on Windows, and Cute PDF is often recommended around here) and simply print to PDF using an app that displays your text properly.
dwig is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PDF Format Blank Page Wordsworth Calibre 0 08-07-2011 05:49 PM
PDF Text AND Page Image.. wierd.. mathewb Sony Reader 0 07-08-2010 02:46 PM
Lost My Very Long Post With Questions About PB 301 Controls vs PB 360 Controls Vienna01 PocketBook 6 06-04-2010 01:51 PM
Page Change Speed - PDF vs <insert format> Polydwarf Astak EZReader 1 02-22-2010 02:11 AM
Best PDF page format ??? captaingeorges Bookeen 5 01-22-2009 12:38 PM


All times are GMT -4. The time now is 07:36 PM.


MobileRead.com is a privately owned, operated and funded community.