    <?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: PHP PDF Merge Files	</title>
	<atom:link href="https://www.bricev.com/blog/php-pdf-merge-files/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.bricev.com/blog/php-pdf-merge-files/</link>
	<description>Web Developer</description>
	<lastBuildDate>Fri, 19 Feb 2021 07:51:06 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.5</generator>
	<item>
		<title>
		By: Jose Luis		</title>
		<link>https://www.bricev.com/blog/php-pdf-merge-files/#comment-918</link>

		<dc:creator><![CDATA[Jose Luis]]></dc:creator>
		<pubDate>Fri, 19 Feb 2021 07:51:06 +0000</pubDate>
		<guid isPermaLink="false">https://www.bricev.com/?p=297#comment-918</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.bricev.com/blog/php-pdf-merge-files/#comment-604&quot;&gt;Sunny Thomas&lt;/a&gt;.

Hi Thomas 

Update the for loop by this code:


foreach ($files as $file) {
    $pageCount = $pdf-&#062;setSourceFile($file);
    for ($i = 0; $i importPage($i + 1);
        $size = $pdf-&#062;getTemplatesize($tpl);
        $pdf-&#062;AddPage($size[&#039;w&#039;] &#062; $size[&#039;h&#039;] ? &#039;L&#039; : &#039;P&#039;, [$size[&#039;w&#039;], $size[&#039;h&#039;]]);
        $pdf-&#062;useTemplate($tpl);
    }
}


Greetings !!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.bricev.com/blog/php-pdf-merge-files/#comment-604">Sunny Thomas</a>.</p>
<p>Hi Thomas </p>
<p>Update the for loop by this code:</p>
<p>foreach ($files as $file) {<br />
    $pageCount = $pdf-&gt;setSourceFile($file);<br />
    for ($i = 0; $i importPage($i + 1);<br />
        $size = $pdf-&gt;getTemplatesize($tpl);<br />
        $pdf-&gt;AddPage($size[&#8216;w&#8217;] &gt; $size[&#8216;h&#8217;] ? &#8216;L&#8217; : &#8216;P&#8217;, [$size[&#8216;w&#8217;], $size[&#8216;h&#8217;]]);<br />
        $pdf-&gt;useTemplate($tpl);<br />
    }<br />
}</p>
<p>Greetings !!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sunny Thomas		</title>
		<link>https://www.bricev.com/blog/php-pdf-merge-files/#comment-604</link>

		<dc:creator><![CDATA[Sunny Thomas]]></dc:creator>
		<pubDate>Fri, 06 Nov 2020 12:15:06 +0000</pubDate>
		<guid isPermaLink="false">https://www.bricev.com/?p=297#comment-604</guid>

					<description><![CDATA[Thank you very much the plugin is working fine. I have one issue, if the pdf sizes are different then the pdf are not merged and error is displayed. Can that also be resolved]]></description>
			<content:encoded><![CDATA[<p>Thank you very much the plugin is working fine. I have one issue, if the pdf sizes are different then the pdf are not merged and error is displayed. Can that also be resolved</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
