[cstex] Vkladani PDF dokumentu do pdfTeXoveho dokumentu a veci s tim souvisejici - VYRESENO!!!
Jaroslav Hajtmar
hajtmar at gyza.cz
Fri Oct 16 13:47:52 CEST 2009
Ano, to je pravda, ConTeXt tyto veci umi. Pro nejakeho ConTeXtistu viz.
%
% =======================================================
% Zdroj : http://wiki.contextgarden.net/Including_pages_from_PDF_document
%
%
% \externalfigure[file.pdf][page=1,width=...]
%
% or
%
% \startTEXpage
% \externalfigure[file.pdf][page=1,width=...]
% \stopTEXpage
%
% which is equal to
%
% \startpagefigure[file.pdf][page=1,...]\stoppagefigure
%
% This one inserts the first 30 pages of the document and adds a blank
page after the first and the third page.
%
% \insertpages[file.pdf][1,3][n=30,width=18cm]
%
% If you want to insert a couple of pages use this:
%
% \filterpages[file.pdf][1,3,4:6][width=18cm]
%
% to insert pages 1, 3, 4, 5 and 6 or
%
% \filterpages[file.pdf][even][width=18cm] % even/odd
%
% to insert even/odd pages up to the page 30. (See also Taco's hack in
Processing Lists for handling ranges of numbers or this thread in the
mailing list.)
%
% Yet another alternative is
%
% \copypages[file.pdf][n=30,scale=950]
%
% \externalfigure[filename][page=2,width..,height=.., factor=..]
%
Dokonce jsem narazil ve svych starych poznamkach na vec, kterou jsem uz
zapomel a ktera castecne resi i muj dotaz,
nicmene s nasazenim manualni prace a to :
\clip [ voffset=1.25in, % clip the topmost part of the inserted page
hoffset=1.5in, % clip the left margin of the inserted page
height=9in, % clip the bottom of the inserted page
width=5.1in] % clip the right margin
{\externalfigure[filename][page=2]}
Nevyhodou je, ze vetsina techto veci neni bohuzel radne zdokumentovana....
Zdravi J.Hajtmar
Zdenek Wagner napsal(a):
> Dne 16. října 2009 12:43 Jaroslav Hajtmar <hajtmar at gyza.cz> napsal(a):
>
>> HEUREKA... :-)
>>
>> rada pana Mikulika ohledne pdfcrop se pro mne ukazala byt presne tim co jsem
>> hledal!!!!
>> Zkusil jsem "pdfcrop" (opravdu je soucasti Tex Live) a po zadani prikazu :
>>
>> pdfcrop --clip fileinp.pdf fileout.pdf
>>
>> se excelovska tabulka, kterou mam ve vstupnim souboru automaticky orizne ze
>> vsech stran presne jak jsem potreboval (bez jakehokoliv zadavani parametru
>> aj.).
>>
>> Dokonce jsem zkousel aplikovat pdfcrop na mnohostrankovy dokument. Pdfcrop z
>> neho udela mnohostrankovy oriznuty dokument tj. ze vsech stranek se odriznou
>> vsechny bile okraje a vysledkem je mnohostrankovy dokument bez jakychkoliv
>> bilych okraju. Tento dokument pak staci jen rozdelit na samostatne stranky a
>> ty uz jen vkladat jak je libo.
>>
>>
> Nemusi. \includegraphics z palicku graphicx ma option page, takze lze
> vlozit libovolnou stranu, napr.
> \includegraphics[page=7]{something.pdf}
> Predpokladam, ze ConTeXt to taky nejak dokaze.
>
>
>> Vsem tento nanejvys efektivni postup VELMI DOPORUCUJI!!! Je to super - az se
>> mi tomu nechce verit!
>>
>> Jeste jednou diky mnohohrat ...
>>
>> Vsechny moc zdravi a pekny vikend preje
>> Jarda Hajtmar
>>
>>
>>
>> Petr Mikulik napsal(a):
>>
>> Bohužel se mi nedaří dostat z Excelu tabulku "bez bílých okrajů", které
>> tvoří
>> "papír" na němž je tabulka umístěna, takže musím bílé okraje z výsledného
>> PDF
>> dokumentu pracně odřezávat (protože jinak je bílý okraj součástí vloženého
>> obr
>> ázku). K ořezávání používám licencovaný nástroj - nějaký PDFTool, který umí
>> s
>> PDF dokumenty dělat různé kejkle...
>>
>>
>> Lze pouzit program pdfcrop, je soucasti texlive.
>>
>> $ pdfcrop
>> PDFCROP 1.5, 2004/06/24 - Copyright (c) 2002, 2004 by Heiko Oberdiek.
>> Syntax: pdfcrop [options] <input[.pdf]> [output file]
>> Function: Margins are calculated and removed for each page in the file.
>> Options: (defaults:)
>> --help print usage
>> --(no)verbose verbose printing (false)
>> --(no)debug debug informations (false)
>> --gscmd <name> call of ghostscript (gs)
>> --pdftexcmd <name> call of pdfTeX (pdftex)
>> --margins "<left> <top> <right> <bottom>" (0 0 0 0)
>> add extra margins, unit is bp. If only one number is
>> given, then it is used for all margins, in the case
>> of two numbers they are also used for right and
>> bottom.
>> --(no)clip clipping support, if margins are set (false)
>> --(no)hires using `%%HiResBoundingBox' (false)
>> instead of `%%BoundingBox'
>> --papersize <foo> parameter for gs's -sPAPERSIZE=<foo>,
>> use only with older gs versions <7.32 ()
>> Examples:
>> pdfcrop --margins 10 input.pdf output.pdf
>> pdfcrop --margins '5 10 5 20' --clip input.pdf output.pdf
>>
>> ---
>> PM
>>
>>
>> ________________________________
>> _______________________________________________
>> csTeX mailing list
>> csTeX at cs.felk.cvut.cz
>> http://lists.felk.cvut.cz/mailman/listinfo/cstex
>>
>>
>> _______________________________________________
>> csTeX mailing list
>> csTeX at cs.felk.cvut.cz
>> http://lists.felk.cvut.cz/mailman/listinfo/cstex
>>
>>
>>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.felk.cvut.cz/pipermail/cstex/attachments/20091016/89c47f27/attachment-0003.html>
More information about the csTeX
mailing list