Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-28-2020, 11:12 PM   #1
piyarad27
Member
piyarad27 began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Oct 2020
Device: pc
Help! I want to get rid of margins on selected page

Hello fallow users, I'm new in using calibre and wanted to convert the book for myself the way that I like. What I wanted to convert is the Epub file to pdf file.
The problem is that I wanted to get rid of the margins on the page that have image on it and make the image full page then the text would show in the fallowing page. Can any one help me?
I photoshop of what the file look like when I convert it, and what I want to look like.

https://drive.google.com/drive/folde...8E?usp=sharing

Here is the html script that I have:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta content="application/xhtml+xml; charset=utf-8" http-equiv="Content-Type"/>
<link href="../Styles/styles.css" rel="stylesheet" type="text/css"/>
<title>Chapter 82: Roast Beef</title>

<style type="text/css">
@page { margin: 0; padding: 0; }
body { margin: 0; padding: 0; oeb-column-number: 1; }
</style>

</head>
<body>


<p class="P_Prose_Formatting__And__Page_Break"><span style=" font-size: 1.00em;">“Um…er…I’d like to talk to the two people over there,” she told the follower of Chaos. “May I sit with them?”</span></p>
<p class="P_Prose_Formatting"><span style=" font-size: 1.00em;">“Oh, you want to share a table? Let me check real quick.” Slightly confused by the request, the follower of Chaos politely headed off to confirm it.</span></p>
<p class="P_Prose_Formatting"><span style=" font-style: italic; font-size: 1.00em;">Ah…maybe she’s not actually a bad person?</span></p>

<div class="P_TEXTBODY_CENTERALIGN_PAGEBREAK"
><img alt="" class="full-page-stretch" id="Restaurant-Vol5_INTERIORIMAGES_" src="../Images/Restaurant-Vol5_INTERIORIMAGES_.jpg"/>
</div>

<p class="P_Prose_Formatting"><span style=" font-size: 1.00em;">That thought crossed Rorona’s mind as she watched the young lady walk away. At the Lord of Black’s shrine, Rorona had been taught to eliminate any and all followers of Chaos on sight. However, she couldn’t find a reason to slay the girl, who didn’t seem like an evildoer.</span></p>
<p class="P_Prose_Formatting"><span style=" font-size: 1.00em;">“I just checked, and Romero and Julietta would love your company. They’d actually like to speak to you as well! Let me take you over to them.”</span></p>
<p class="P_Prose_Formatting"><span style=" font-size: 1.00em;">After being on the receiving end of the young lady’s bright smile, how could Rorona not obediently follow? </span></p>
<p class="P_Prose_Formatting"><span style=" font-size: 1.00em;">“All right. Thank you.” She let the follower of Chaos guide her to the table.</span></p>
piyarad27 is offline   Reply With Quote
Old 10-28-2020, 11:24 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,210
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://manual.calibre-ebook.com/con...ual-html-files
kovidgoyal is offline   Reply With Quote
Advert
Old 10-29-2020, 11:38 PM   #3
piyarad27
Member
piyarad27 began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Oct 2020
Device: pc
The image and text is in the same html file. So all pages generated from this HTML file. What I want is only the image to have no margins which is the line

<div class="P_TEXTBODY_CENTERALIGN_PAGEBREAK"
><img alt="" class="full-page-stretch" id="Restaurant-Vol5_INTERIORIMAGES_" src="../Images/Restaurant-Vol5_INTERIORIMAGES_.jpg"/>
</div>

not the text that come before and after. please see the ideal photo in
https://drive.google.com/drive/folde...8E?usp=sharing

Last edited by piyarad27; 10-29-2020 at 11:41 PM.
piyarad27 is offline   Reply With Quote
Old 10-30-2020, 01:38 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,210
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
you cannot, split it up into separate files.
kovidgoyal is offline   Reply With Quote
Old 11-01-2020, 02:37 AM   #5
piyarad27
Member
piyarad27 began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Oct 2020
Device: pc
Thank you and do you know how to readjust individual page size? I have a page with horizon image and wanted it to be full screen without the white space below.(see thumbnail) To summarize, I want to change original page size of 1403x2000 to 2806X2000 for horizon image how do I do that?
Attached Thumbnails
Click image for larger version

Name:	5.PNG
Views:	104
Size:	421.8 KB
ID:	183147  
piyarad27 is offline   Reply With Quote
Advert
Old 11-01-2020, 09:52 AM   #6
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: 30,914
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
That is why you have a stylesheet.
Make a new style and apply it WHERE needed.
Conversion applies the user rules (and existing css settings) to the whole book
If you want a 'fine tuned' page, then you need to do it by hand with the editor.

Basic CSS2 is not really that hard. Look at the code and reverse engineer
theducks is offline   Reply With Quote
Old 11-02-2020, 05:30 AM   #7
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 73,699
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by piyarad27 View Post
Thank you and do you know how to readjust individual page size? I have a page with horizon image and wanted it to be full screen without the white space below.(see thumbnail) To summarize, I want to change original page size of 1403x2000 to 2806X2000 for horizon image how do I do that?
You need to define how you want the image to become a full page image.

1) the image just stretches to fit the page, distorting the image
2) the image stretches without distortion, cutting off some of the image which extends beyond the page
3) the image rotates to match its longest side to the screen's longest side and then stretches without distortion, cutting off some of the image which extends beyond the page

Or some other option I haven't thought of?
pdurrant is online now   Reply With Quote
Old 11-02-2020, 10:16 PM   #8
piyarad27
Member
piyarad27 began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Oct 2020
Device: pc
Thank you
piyarad27 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-T1 PRS-T1 - Changing page margins prevents 'touch' page turning Berzelius Sony Reader 2 08-24-2012 04:02 AM
Getting rid of a blank page iroquois Sigil 4 04-01-2012 12:33 AM
PRS-600 Help with getting rid of PDF margins sune Sony Reader 17 07-06-2010 08:31 AM
Getting rid of page numbers PodPeople Ectaco jetBook 1 05-17-2010 03:57 AM


All times are GMT -4. The time now is 11:53 AM.


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